| Index: runtime/bin/process_linux.cc
|
| diff --git a/runtime/bin/process_linux.cc b/runtime/bin/process_linux.cc
|
| index bb4ad872f060209f7c6b5c6ad4734d0d459e7d55..95d11cdce7dc2b8ee6a2aaf0ce1bcf12900d69de 100644
|
| --- a/runtime/bin/process_linux.cc
|
| +++ b/runtime/bin/process_linux.cc
|
| @@ -405,6 +405,9 @@ int Process::Start(const char* path,
|
| ReportChildError(exec_control[1]);
|
| }
|
|
|
| + // Be sure to listen for exit-codes, now we have a child-process.
|
| + ExitCodeHandler::ProcessStarted();
|
| +
|
| // The arguments and environment for the spawned process are not needed
|
| // any longer.
|
| delete[] program_arguments;
|
| @@ -491,9 +494,6 @@ int Process::Start(const char* path,
|
| *err = read_err[0];
|
| TEMP_FAILURE_RETRY(close(read_err[1]));
|
|
|
| - // Be sure to listen for exit-codes, now we have a child-process.
|
| - ExitCodeHandler::ProcessStarted();
|
| -
|
| *id = pid;
|
| return 0;
|
| }
|
|
|