diff options
author | 2016-09-26 15:12:31 +0000 | |
---|---|---|
committer | 2016-09-26 17:48:51 +0000 | |
commit | f8ce97e38426218180c33ba44ad8d02101c46c80 (patch) | |
tree | e38eab3be6cc0dd3e183c612e238b105059d98eb /src/main/tools/linux-sandbox.cc | |
parent | 50f6bbaeb56c927470fd5ef84351845bebec367c (diff) |
Fix #1671: Use a better approach to reap child processes, which fixes the occasional hangs seen during builds and on Bazel CI.
--
MOS_MIGRATED_REVID=134279208
Diffstat (limited to 'src/main/tools/linux-sandbox.cc')
-rw-r--r-- | src/main/tools/linux-sandbox.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/tools/linux-sandbox.cc b/src/main/tools/linux-sandbox.cc index 865bf86ea2..01e01fdc30 100644 --- a/src/main/tools/linux-sandbox.cc +++ b/src/main/tools/linux-sandbox.cc @@ -180,6 +180,8 @@ static void SpawnPid1() { DIE("clone"); } + PRINT_DEBUG("linux-sandbox-pid1 has PID %d", global_child_pid); + // We close the write end of the sync pipe, read a byte and then close the // pipe. This proves to the linux-sandbox-pid1 process that we still existed // after it ran prctl(PR_SET_PDEATHSIG, SIGKILL), thus preventing a race |