diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-04-11 15:28:51 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2012-04-11 15:28:51 +0000 |
commit | 86f02b900dd631fbf0aa31bede913fb0dafd8345 (patch) | |
tree | 130e8df9738ade3557faa105580a0ccf8cdd30bd /sys/kern/kern_exit.c | |
parent | e51e64c1e1a3ed49446363def75895cbe6a6d2d4 (diff) |
Move the P_WAITED flag from struct proc to struct process.
ok guenther@
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 8b5fe9d463a..62f927aefe4 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_exit.c,v 1.111 2012/04/10 15:50:52 guenther Exp $ */ +/* $OpenBSD: kern_exit.c,v 1.112 2012/04/11 15:28:50 kettenis Exp $ */ /* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */ /* @@ -488,10 +488,11 @@ loop: return (0); } if (p->p_stat == SSTOP && - (p->p_flag & (P_WAITED|P_SUSPSINGLE)) == 0 && + (pr->ps_flags & PS_WAITED) == 0 && + (p->p_flag & P_SUSPSINGLE) == 0 && (pr->ps_flags & PS_TRACED || SCARG(uap, options) & WUNTRACED)) { - atomic_setbits_int(&p->p_flag, P_WAITED); + atomic_setbits_int(&pr->ps_flags, PS_WAITED); retval[0] = p->p_pid; if (SCARG(uap, status)) { |