summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_sig.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_sig.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_sig.c')
-rw-r--r--sys/kern/kern_sig.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 936d04c8e70..86dfae55cf7 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sig.c,v 1.138 2012/03/23 15:51:26 guenther Exp $ */
+/* $OpenBSD: kern_sig.c,v 1.139 2012/04/11 15:28:50 kettenis Exp $ */
/* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */
/*
@@ -1192,7 +1192,7 @@ proc_stop(struct proc *p, int sw)
#endif
p->p_stat = SSTOP;
- atomic_clearbits_int(&p->p_flag, P_WAITED);
+ atomic_clearbits_int(&p->p_p->ps_flags, PS_WAITED);
atomic_setbits_int(&p->p_flag, P_STOPPED|P_SUSPSIG);
if (!timeout_pending(&proc_stop_to)) {
timeout_add(&proc_stop_to, 0);