Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Mar 2002 05:40:06 -0800 (PST)
From:      David Malone <dwmalone@maths.tcd.ie>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/35703: /proc/curproc/file returns unknown
Message-ID:  <200203091340.g29De6w25295@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/35703; it has been noted by GNATS.

From: David Malone <dwmalone@maths.tcd.ie>
To: Slaven Rezic <slaven.rezic@berlin.de>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: kern/35703: /proc/curproc/file returns unknown
Date: Sat, 9 Mar 2002 13:36:00 +0000

 On Sat, Mar 09, 2002 at 12:28:07PM +0100, Slaven Rezic wrote:
 > 	If run as ./a.out, it works OK.
 > 	However, if a subdirectory in the same directory is deleted,
 > 	then the program returns "unknown":
 > 
 > 		mkdir foo ; rmdir foo ; ./a.out
 > 
 > 	This works again:
 > 
 > 		mkdir foo ; rmdir foo ; `pwd`/a.out
 
 This is the same problem which sometimes caused the Linux emulators
 getcwd to fail. The linux emulation code has since been fixed to
 try harder, as Linux applications expect it to.
 
 I'm not sure that people would be in favour of making procfs try
 harder, as procfs doesn't even have to be mounted for most things
 in FreeBSD now. If you did want to try and fix it, then the place
 to start looking would be at the Linux emulation getcwd code in
 /usr/src/sys/compat/linux/linux_getcwd.c.
 
 	David.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203091340.g29De6w25295>