| Index: runtime/bin/process_linux.cc
|
| diff --git a/runtime/bin/process_linux.cc b/runtime/bin/process_linux.cc
|
| index 01b17a9a9d442e80343e50f9588a0dfafdba905c..cd712677e9522bcb7666d8ea8f43b439dd5bbe19 100644
|
| --- a/runtime/bin/process_linux.cc
|
| +++ b/runtime/bin/process_linux.cc
|
| @@ -125,6 +125,8 @@ class ExitCodeHandler {
|
| if (result < 0) {
|
| return false;
|
| }
|
| + FDUtils::SetCloseOnExec(sig_chld_fds_[0]);
|
| + FDUtils::SetCloseOnExec(sig_chld_fds_[1]);
|
|
|
| // Start thread that polls the pipe and handles process exits when
|
| // data is received on the pipe.
|
| @@ -482,6 +484,8 @@ int Process::Start(const char* path,
|
| Log::PrintErr("Error pipe creation failed: %s\n", *os_error_message);
|
| return errno;
|
| }
|
| + FDUtils::SetCloseOnExec(event_fds[0]);
|
| + FDUtils::SetCloseOnExec(event_fds[1]);
|
|
|
| ProcessInfoList::AddProcess(pid, event_fds[1]);
|
| *exit_event = event_fds[0];
|
|
|