<div dir="ltr">On Fri, Sep 5, 2008 at 11:14 AM, Hal Duston <span dir="ltr">&lt;<a href="mailto:hald@kc.rr.com">hald@kc.rr.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><div>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div class="Wj3C7c">&gt; A process can change the arguments at any time w/o doing an exec. &nbsp;I have<br>
&gt; actually read the code that is needed to do this under Linux. &nbsp;It is less<br>
&gt; than 15 lines. &nbsp;All it does is rebuild the environment which is where the<br>
&gt; exec&#39;ed command line arguments are kept. &nbsp;Once they are rebuilt ps, &nbsp;top,<br>
&gt; and everything else just pick them up from /proc/&lt;pid&gt;/cmdline.<br>
</div></div></blockquote></div><br>Wow.&nbsp; I had no idea.&nbsp; Here I thought ps got that info from an internal kernel data structure that wasn&#39;t manipulable by userland.&nbsp; That suggests some really ugly possibilities.<br></div>