lkml.org 
[lkml]   [1998]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: writable /proc/XXX/cmdline to change ps name (patch)
From
Date
In article <9811141755.AA66792@brooks.torolab.ibm.com>,
peeter_joot@VNET.IBM.COM writes:
> Hello,
> 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.

Linux has the same mechanism. Just overwrite the command line in the
environment. No need to change /proc.


-Andi

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:45    [from the cache]
©2003-2011 Jasper Spaans