summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2004-07-04 13:35:02 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2004-07-04 13:35:02 +0000
commit333097bd057366717cb17004c42c050503c46045 (patch)
treed6619136692709a58151218b9939b4353d0c8c4d
parentbe3980131a31107d19494946d6a9af420ae10f0d (diff)
proc_stop needs sched_lock locked. From art, verified with NetBSD.
-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 0913d2b2a1f..7ca9269bd1d 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sig.c,v 1.71 2004/06/13 21:49:26 niklas Exp $ */
+/* $OpenBSD: kern_sig.c,v 1.72 2004/07/04 13:35:01 niklas Exp $ */
/* $NetBSD: kern_sig.c,v 1.54 1996/04/22 01:38:32 christos Exp $ */
/*
@@ -1151,8 +1151,8 @@ issignal(struct proc *p)
p->p_xstat = signum;
if ((p->p_pptr->p_flag & P_NOCLDSTOP) == 0)
psignal(p->p_pptr, SIGCHLD);
- proc_stop(p);
SCHED_LOCK(s);
+ proc_stop(p);
mi_switch();
SCHED_ASSERT_UNLOCKED();
splx(s);