[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] command-line





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".

--
Emmanuel


_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports