diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2004-11-18 15:10:25 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2004-11-18 15:10:25 +0000 |
commit | 5c5ac86cce111eb40d33fdd6e17d0c3bedbf1437 (patch) | |
tree | 08937f9d27c3b5287a2168a5c84bd3a7fdb3c0f2 /usr.bin/w | |
parent | 68e96d160057e41e02c2d54230b19169a52855d0 (diff) |
handle SONPROC; ok aaron, deraadt, krw
Diffstat (limited to 'usr.bin/w')
-rw-r--r-- | usr.bin/w/proc_compare.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/w/proc_compare.c b/usr.bin/w/proc_compare.c index 3aa3441eb86..da630aaec3a 100644 --- a/usr.bin/w/proc_compare.c +++ b/usr.bin/w/proc_compare.c @@ -1,4 +1,4 @@ -/* $OpenBSD: proc_compare.c,v 1.8 2004/01/08 18:14:51 millert Exp $ */ +/* $OpenBSD: proc_compare.c,v 1.9 2004/11/18 15:10:24 markus Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -33,7 +33,7 @@ #if 0 static char sccsid[] = "@(#)proc_compare.c 8.2 (Berkeley) 9/23/93"; #else -static char *rcsid = "$OpenBSD: proc_compare.c,v 1.8 2004/01/08 18:14:51 millert Exp $"; +static char *rcsid = "$OpenBSD: proc_compare.c,v 1.9 2004/11/18 15:10:24 markus Exp $"; #endif #endif /* not lint */ @@ -62,7 +62,8 @@ static char *rcsid = "$OpenBSD: proc_compare.c,v 1.8 2004/01/08 18:14:51 millert * TODO - consider whether pctcpu should be used. */ -#define ISRUN(p) (((p)->p_stat == SRUN) || ((p)->p_stat == SIDL)) +#define ISRUN(p) (((p)->p_stat == SRUN) || ((p)->p_stat == SIDL) || \ + ((p)->p_stat == SONPROC)) #define TESTAB(a, b) ((a)<<1 | (b)) #define ONLYA 2 #define ONLYB 1 |