Subject: Re: /proc + Linux emul: "exe" is no symlink
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 10/24/2006 19:01:02
> Linux:
>    rfhinf090% dir /proc/$$/exe
>    lrwxrwxrwx  1 feyrer bedienst 0 Oct 25 00:31 /proc/19364/exe -> /bin/tcsh

> NetBSD:
>    noon% dir /emul/linux/proc/$$/exe
>    -r-xr-xr-x  1 root  wheel  298032 Aug 11 02:09 /emul/linux/proc/13537/exe

> How hard would it be to fix our procfs to have the 'exe' entry as
> symlink?  Or is there a good reason not to follow Linux (in Linux
> emul!) here?

What does the link point to if the executable has been unlinked?  Or if
it's not accessible under the current root dir (ie, in a chroot)?

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B