2012/4/8 Aleksej Saushev <[email protected]>

> Emmanuel Medernach <[email protected]> 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".

--
Emmanuel
_______________________________________________
Scheme-reports mailing list
[email protected]
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports

Reply via email to