login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
January
»
7
Re: umount -l <path>, getcwd and /proc/<pid>/cwd inconsistent
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Ian Kent <raven@...>
To: <bjdouma@...>
Cc: <linux-kernel@...>
Subject:
Re: umount -l <path>, getcwd and /proc/<pid>/cwd inconsistent
Date: Monday, January 7, 2008 - 4:55 am
On Mon, 2008-01-07 at 09:29 +0100, Bauke Jan Douma wrote:
quoted text
> Ian Kent wrote on 07-01-08 04:17: > > Hi all, > > > > Could someone please help me understand what's happening with, what > > looks like inconsistent behavior, between getpwd and procfs readlink. > > > > Basically, from a bash shell, setting working directory to a mounted > > directory all is fine with "pwd" and "/proc/<pid>/cwd". Following a > > "umount - l" on the mount "pwd" continues to return the expected string > > but "/proc/<pid>/cwd" returns an empty string. > > > > What I'm really after is why this happens because sys_getcwd and > > proc_pid_readlink appear to do essentially the same thing to get the > > string. > > > [snip] > > What does `/bin/pwd' return, when you do that instead of > plain `pwd' (after the umount)?
I did check that at one point and it returned the same as pwd. I'll check again later, but I remember I explicitly checked that along the way. Ian --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
Odd behaviour observed on fb0 (TFT LCD screen 800x480)
, cksim
, (Sun Jan 6, 11:17 pm)
umount -l <path>, getcwd and /proc/<pid>/cwd inconsistent
, Ian Kent
, (Sun Jan 6, 11:17 pm)
Re: umount -l <path>, getcwd and /proc/<pid>/cwd inconsistent
, Ian Kent
, (Tue Jan 8, 11:10 pm)
Re: Odd behaviour observed on fb0 (TFT LCD screen 800x480)
, Geert Uytterhoeven
, (Tue Jan 8, 4:39 am)
Re: umount -l <path>, getcwd and /proc/<pid>/cwd inconsistent
, Andreas Schwab
, (Mon Jan 7, 6:37 am)
Re: umount -l <path>, getcwd and /proc/<pid>/cwd inconsistent
, Bauke Jan Douma
, (Mon Jan 7, 4:29 am)
Re: umount -l <path>, getcwd and /proc/<pid>/cwd inconsistent
, Ian Kent
, (Mon Jan 7, 4:55 am)
Re: umount -l <path>, getcwd and /proc/<pid>/cwd inconsistent
, Ian Kent
, (Mon Jan 7, 5:29 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
david
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Justin C. Sherrill
Mailing list archive
Ingo Molnar
[patch 08/13] syslets: x86, add move_user_context() method
git
:
linux-netdev
:
Steven Rostedt
Re: -rt scheduling: wakeup bug?
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
13 users
and
921 guests
online.
Online users
strcmp
zeekec
laptopsetlczw
michellestarl27
childrensfurni
electricpatioh
loanschicagopx
torontomortgag
razmikmckayjzs
findphonenumbe
extralongshowe
xphomenetworkt
uniquechristma
Syndicate