Proposed specification for /proc

OK, this is way late, but here it is. Please let me know of any feedback you have. Once it's been put through the ringer here, I plan to send it on to the linux-kernel list. Summary: for now, we only specify /proc/[pid] and /proc/self, and only the two files exe and cmdline under those. I envision this would live in the "File System Hierarchy" section of the spec.
Proposed specification for /proc - Submitted by LSB List on Wed, 08/27/2008 - 16:00.

Posted to the lsb-discuss mailing list by: Kevin P. Dankwardt


A couple of nits.

1) The exe link will add "(deleted)" if the executable is deleted while
the process is running. If a new file replaces the deleted executable
the exe link still says "(deleted)" - a good thing I think, by the way.
The exe "link", also appears to be a symbolic link but does not behave
that way because of this "deleted" feature. Also, it does not behave
like a hard link either.

2) The "exhibited to the program" seems ambiguous to me. The values of
argv[] can be changed by a process, but, the cmdline value appears to be
unchanged. Perhaps a phrase like "as provided to the process at process
creation" or some such.

I verified this behavior on only one kernel, by-the-way (2.6.23.1-42.fc8)

-kevin dankwardt
> OK, this is way late, but here it is. Please let me know of any
> feedback you have. Once it's been put through the ringer here, I plan
> to send it on to the linux-kernel list.
>
> Summary: for now, we only specify /proc/[pid] and /proc/self, and only
> the two files exe and cmdline under those.
>

Copyright © 2008 Linux Foundation. All rights reserved.
LSB is a trademark of the Linux Foundation. Linux is a registered trademark of Linus Torvalds