SCCS-vsn: bin/ps/ps.c 5.5
#endif not lint
#ifndef lint
#endif not lint
#ifndef lint
-static char sccsid[] = "@(#)ps.c 5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)ps.c 5.5 (Berkeley) %G%";
#endif not lint
#include <stdio.h>
#endif not lint
#include <stdio.h>
char *psdb = PSFILE;
#endif
char *psdb = PSFILE;
#endif
int aflg, cflg, eflg, gflg, kflg, lflg, nflg, sflg,
uflg, vflg, xflg, Uflg;
int nchans; /* total # of wait channels */
int aflg, cflg, eflg, gflg, kflg, lflg, nflg, sflg,
uflg, vflg, xflg, Uflg;
int nchans; /* total # of wait channels */
continue;
if (uid != mproc->p_uid && aflg==0)
continue;
continue;
if (uid != mproc->p_uid && aflg==0)
continue;
- if (chkpid != 0 && chkpid != mproc->p_pid)
+ if (chkpid != -1 && chkpid != mproc->p_pid)
continue;
if (vflg && gflg == 0 && xflg == 0) {
if (mproc->p_stat == SZOMB ||
continue;
if (vflg && gflg == 0 && xflg == 0) {
if (mproc->p_stat == SZOMB ||