static REAP_LOCK: RwLock<()>Expand description
Taken for writing while the server reaps one of its children, and for reading while it checks that one was not reaped yet and signals it. A child found unreaped under the read lock stays unreaped until the signals were sent. So neither its PID nor the ID of its process group, which it keeps referring to as a zombie, can be taken by another process meanwhile. The server is the only one which reaps its children.