summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-09-16 21:38:24 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-09-16 21:38:24 +0000
commit844219f47178e5113530e3e7bf98a4af8651711c (patch)
treebed98422b54d5cf2553b89b4d59470b0e4869ecd
parent82207cd246af9014666ac7870d8795041b6392e4 (diff)
Notes
-rw-r--r--sys/kern/kern_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index 468526595029e..cab69f06163a7 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -104,7 +104,7 @@ proc_realparent(struct proc *child)
sx_assert(&proctree_lock, SX_LOCKED);
if ((child->p_treeflag & P_TREE_ORPHANED) == 0)
return (child->p_pptr->p_pid == child->p_oppid ?
- child->p_pptr : initproc);
+ child->p_pptr : child->p_reaper);
for (p = child; (p->p_treeflag & P_TREE_FIRST_ORPHAN) == 0;) {
/* Cannot use LIST_PREV(), since the list head is not known. */
p = __containerof(p->p_orphan.le_prev, struct proc,