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:
parent
a9d877b4c2
commit
2230824221
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user