Refactor WaitPgrp a bit more:
- Always have a separate "dummy process" in each process group to prevent the PGID from getting deallocated when the leader dies. This makes the logic that kills the rest of a process group when the leader dies race-free. - Do the killing the rest of the process group inside WaitPgrp rather than in its callers.
parent
d845c21e
Please register or sign in to comment