summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2014-07-11 08:18:30 +0000
committerguenther <guenther@openbsd.org>2014-07-11 08:18:30 +0000
commitde4108ea246ca18ecf2b1c2da217fe05eaa13f68 (patch)
tree050306084aa3b18ca1e775ac2f7dc14097b67947 /sys/kern/kern_exit.c
parentNo need to keep ssl23_foo() flavours mapping to ssl3_foo(). (diff)
downloadwireguard-openbsd-de4108ea246ca18ecf2b1c2da217fe05eaa13f68.tar.xz
wireguard-openbsd-de4108ea246ca18ecf2b1c2da217fe05eaa13f68.zip
It's init as a process that's special, not init's original thread.
Remember initprocess instead of initproc. ok matthew@ blambert@
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 31164ad99cb..24d9305bb6e 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_exit.c,v 1.145 2014/07/08 17:19:25 deraadt Exp $ */
+/* $OpenBSD: kern_exit.c,v 1.146 2014/07/11 08:18:31 guenther Exp $ */
/* $NetBSD: kern_exit.c,v 1.39 1996/04/22 01:38:25 christos Exp $ */
/*
@@ -286,10 +286,10 @@ exit1(struct proc *p, int rv, int flags)
*/
qr = LIST_FIRST(&pr->ps_children);
if (qr) /* only need this if any child is S_ZOMB */
- wakeup(initproc->p_p);
+ wakeup(initprocess);
for (; qr != 0; qr = nqr) {
nqr = LIST_NEXT(qr, ps_sibling);
- proc_reparent(qr, initproc->p_p);
+ proc_reparent(qr, initprocess);
/*
* Traced processes are killed since their
* existence means someone is screwing up.
@@ -339,7 +339,7 @@ exit1(struct proc *p, int rv, int flags)
*/
if (pr->ps_flags & PS_NOZOMBIE) {
struct process *ppr = pr->ps_pptr;
- proc_reparent(pr, initproc->p_p);
+ proc_reparent(pr, initprocess);
wakeup(ppr);
}