Tidy up previous change: move comment about obtaining an exclusive

reference where it belongs, and remove a blank line to make it more
obvious what the comment applies to.
This commit is contained in:
tjr 2003-03-13 00:57:47 +00:00
parent a9d877b4c2
commit 2230824221

View File

@ -658,15 +658,14 @@ loop:
return (0);
}
sx_xlock(&allproc_lock);
LIST_REMOVE(p, p_list); /* off zombproc */
sx_xunlock(&allproc_lock);
LIST_REMOVE(p, p_sibling);
/*
* Remove other references to this process to ensure
* we have an exclusive reference.
*/
sx_xlock(&allproc_lock);
LIST_REMOVE(p, p_list); /* off zombproc */
sx_xunlock(&allproc_lock);
LIST_REMOVE(p, p_sibling);
leavepgrp(p);
sx_xunlock(&proctree_lock);