Re: writable /proc/XXX/cmdline to change ps name (patch)

Pavel Janik ml. (pavel@inet.cz)
15 Nov 1998 10:26:58 +0100


From: <peeter_joot@VNET.IBM.COM> (peeter joot)
Date: Sat, 14 Nov 1998 12:55:32 -0500 (EST)

Hi,

> Attached below is a patch that allows /proc/<pid>/cmdline to be writable.
> Some other operating systems have mechanisms that allow you to change the
> name that shows up when you do a ps (AIX -- write into argv[0], HP -- via
> pstat()). I didn't think that it would be too hard to allow the
> same thing on linux via /proc/, and gave it a try.

it is already possible (see sendmail's function setproctitle in src/conf.c):

277 ? S 0:00 sendmail: accepting connections on port 25

-- 
Pavel Janík ml.
Pavel.Janik@inet.cz

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/