changing cmd listing for ps -f

Boyd Roberts boyd at necisa.ho.necisa.oz
Wed Jul 4 10:08:57 AEST 1990


Nothing you do on System V will change the command name/argument list
that ps prints.  Both the command name and some of the `arguments' are
stored in the U area and are not modifiable by any `reliable' method.

Check out u.u_comm and u.u_psargs in /usr/include/sys/user.h.  ps uses
these U area values alone.  No longer does it search the user process'
stack.  That was always `messy'.

That's the story on V.2 and I guess it's the same on V.n for n > 2.


Boyd Roberts			boyd at necisa.ho.necisa.oz.au

``When the going gets wierd, the weird turn pro...''



More information about the Comp.unix.wizards mailing list