summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2012-04-11 15:28:50 +0000
committerkettenis <kettenis@openbsd.org>2012-04-11 15:28:50 +0000
commit8247badb25a783cd6bf677151effa6912e37b660 (patch)
tree338fcfceb23d71b7c20ed172ea387d008a3a0411 /sys/kern/kern_exit.c
parentcomplete function name. (diff)
downloadwireguard-openbsd-8247badb25a783cd6bf677151effa6912e37b660.tar.xz
wireguard-openbsd-8247badb25a783cd6bf677151effa6912e37b660.zip
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.c7
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)) {