Parenthesized arguments in a "ps" list

Keith Packard keithp at azure.UUCP
Tue Nov 15 05:43:48 AEST 1983


This is in reply to the author that had problems with ps giving command
names in parenthesis when a long environment variable was set.
The reason for this occurance is that ps looks backwards in the user stack
segment for the argument list, the top-most stuff is the environment and
then comes the argument list (see exec(2)).  Ps only looks a little way
into the user segment to keep it running at a reasonable speed.  If an
extremely long environment variable is in the stack, ps will not look
far enough down the stack to find the arguments.  Not finding those
arguments, ps prints out the command name in parenthesis to indicate this.
Of course, this only relates to PDP11 unixes and things that have similar
exec formats (vaxen...)
-keith packard
tektronix!tekmdp!keithp



More information about the Comp.unix.wizards mailing list