-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v2: reapChildren should use the pid and not the pgid when pgid==0 (#410)
* kill whole process group when killing on timeout * send reapChildren the pid rather the pgid when the pgid is 0. Whenever our pgid is 0, the reapChildren function won't have anything to reap so we end up with zombies. So in that case we'll pass the pid; we need to move this check to after the start of the process so that we have a valid pid. * ensure zombies reaping test fails correctly * revert pgid fix for RunAndWaitForOutput we don't ever get access to the pid in this method because the golang stdlib is blocking here; by the time the Output call returns the pid is gone and we get a NPE.
- Loading branch information
Showing
3 changed files
with
43 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters