Add a comment.

This commit is contained in:
John Baldwin 2006-02-03 21:09:40 +00:00
parent bbe9814a5b
commit 37f84a6018
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155267

View File

@ -417,6 +417,9 @@ exit1(struct thread *td, int rv)
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 */