| Index: runtime/bin/process_android.cc
|
| diff --git a/runtime/bin/process_android.cc b/runtime/bin/process_android.cc
|
| index 28da461201ff65cbca8b20ac96bebe12ef5c4051..378b9bafece4df68da4a6c4168d75920021150b9 100644
|
| --- a/runtime/bin/process_android.cc
|
| +++ b/runtime/bin/process_android.cc
|
| @@ -406,6 +406,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;
|
| @@ -492,9 +495,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;
|
| }
|
|
|