aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Heinonen <jh@FreeBSD.org>2012-03-21 16:16:59 +0000
committerJaakko Heinonen <jh@FreeBSD.org>2012-03-21 16:16:59 +0000
commitfb22bed40dc4a5ef24f7a25d12a75fef86dcdc78 (patch)
treeeb8f9a97228e2e09ea752a06a3037d5ea39addac
parent2bb4687281874d6ac315002dc41d4566f59c1a77 (diff)
Notes
-rw-r--r--sys/kern/kern_exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 6c4f3d8d071c..d1f83e4db3d4 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -814,6 +814,8 @@ proc_to_reap(struct thread *td, struct proc *p, pid_t pid, int *status,
{
struct proc *q;
+ sx_assert(&proctree_lock, SA_XLOCKED);
+
q = td->td_proc;
PROC_LOCK(p);
if (pid != WAIT_ANY && p->p_pid != pid && p->p_pgid != -pid) {