OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: [PATCH] ps, S state

From: Alexey Vatchenko (avbsdua.org)
Date: Mon Jan 14 2008 - 06:16:55 CST


Alexey Vatchenko wrote:
> Make /bin/ps determine 'S' state.
>
> Index: bin/ps/print.c
> ===================================================================
> RCS file: /cvs/openbsd/src/bin/ps/print.c,v
> retrieving revision 1.43
> diff -u -r1.43 print.c
> --- bin/ps/print.c 6 Nov 2007 10:22:29 -0000 1.43
> +++ bin/ps/print.c 11 Jan 2008 23:21:30 -0000
> -211,6 +211,9
> VAR *v;
> char buf[16];
>
> + if (!nlistread)
> + (void)donlist();
> +
> v = ve->var;
> flag = kp->p_flag;
> cp = buf;
>
>

How to reproduce: `ps ax`

Other options in command line can give you S state.