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 /sys/kern/tty.c | |
parent | 68e96d160057e41e02c2d54230b19169a52855d0 (diff) |
handle SONPROC; ok aaron, deraadt, krw
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 20cd1c00897..4af17dea526 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty.c,v 1.66 2004/09/19 21:34:43 mickey Exp $ */ +/* $OpenBSD: tty.c,v 1.67 2004/11/18 15:10:24 markus Exp $ */ /* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */ /*- @@ -2146,7 +2146,8 @@ ttyinfo(tp) * we pick out just "short-term" sleepers (P_SINTR == 0). * 4) Further ties are broken by picking the highest pid. */ -#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 |