summaryrefslogtreecommitdiff
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-04-13 19:18:25 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-04-13 19:18:25 +0000
commit6c405daf91c475006c12716903b5ac698de1523e (patch)
treed88ee731a108fb9197d0344d32c98a37f4d8f85d /sys/kern/kern_exit.c
parente0a31b2ec4abf89513a90f4c9f0311c5b0bcebc6 (diff)
Backout a tiny part of the previous commit. Decrementing ps_singlecount in
exit1() is wrong, since single_thread_check() already decrements it and may call exit1() after that. I can't reproduce the hang that this was supposed to fix anyway.
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 2565844fb74..dc34131959f 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.113 2012/04/13 16:37:51 kettenis Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.114 2012/04/13 19:18:24 kettenis Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -158,10 +158,6 @@ exit1(struct proc *p, int rv, int flags)
/* unlink ourselves from the active threads */
TAILQ_REMOVE(&pr->ps_threads, p, p_thr_link);
- if (ISSET(p->p_flag, P_SUSPSINGLE)) {
- if (--pr->ps_singlecount == 0)
- wakeup(&pr->ps_singlecount);
- }
if ((p->p_flag & P_THREAD) == 0) {
/* main thread gotta wait because it has the pid, et al */
while (! TAILQ_EMPTY(&pr->ps_threads))