2012/4/8 Aleksej Saushev
<asau@x>
Emmanuel Medernach <
emmanuel.medernach@x> writes:
>
> Is the unreliability of /proc/self/cmdline really a problem ?
Not at all. :)
lithium$ ls /proc
lithium$
:) Well of course it depends if your Unix flavor implements '/proc/'. On mine it does and "ps" uses it.
> AFAK, "ps" uses /proc/<pid>/cmdline to access the command line
> arguments of processes.
No, you're wrong, it uses libkvm.
Interesting, thanks. So it means on systems lacking '/proc' you have different ways to obtain arguments other than from "main".