[BusyBox] Re: Problem with process accounting

Oron Peled oron at actcom.co.il
Thu Nov 21 17:33:03 UTC 2002


On 20 Nov 2002 13:46:02 +0200
Gilad Ben-Yossef <gilad at benyossef.com> wrote:
> On Wed, 2002-11-20 at 10:59, Michael Sternberg wrote:
> > ...
> > in "cmdline" there is a '\0' in place of last slash !!
> ...
> In short - it's the application (or whatever spawned it) fault.

This "reflection" of argv[0] to the outside world via ps(1) is common
to most Unices.  Moreover, some applications carefully change argv[0]
to convey important info to the outside world.

A famous example is sendmail. If you connect to the smtp
port on your mailserver and run ps on the mailserver
you should see (at least) two sendmail processes (one
waiting for connections and one serving your connection).
Note the difference in their names... cute, isn't it?

----------------------------------------------------------------
Oron Peled                             Voice/Fax: +972-4-8228492
oron at actcom.co.il                  http://www.actcom.co.il/~oron

Linux:  If you're not careful, you might actually learn something.
		-- Allen Wong



More information about the busybox mailing list