summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exit.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-02-03 21:09:40 +0000
committerjhb <jhb@FreeBSD.org>2006-02-03 21:09:40 +0000
commit2b85b6db3b8673dd6cd28274f2225f147ce3ab52 (patch)
tree5bd5305d6b870a580362d52a45d8770e33469717 /sys/kern/kern_exit.c
parent922fe28054a142e59a827c2f1b3cc6e40005711a (diff)
downloadFreeBSD-src-2b85b6db3b8673dd6cd28274f2225f147ce3ab52.zip
FreeBSD-src-2b85b6db3b8673dd6cd28274f2225f147ce3ab52.tar.gz
Add a comment.
Diffstat (limited to 'sys/kern/kern_exit.c')
-rw-r--r--sys/kern/kern_exit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c
index c9e058d..05bd39c 100644
--- a/sys/kern/kern_exit.c
+++ b/sys/kern/kern_exit.c
@@ -417,6 +417,9 @@ retry:
LIST_REMOVE(p, p_hash);
sx_xunlock(&allproc_lock);
+ /*
+ * Reparent all of our children to init.
+ */
sx_xlock(&proctree_lock);
q = LIST_FIRST(&p->p_children);
if (q != NULL) /* only need this if any child is S_ZOMB */
OpenPOWER on IntegriCloud