| Index: runtime/bin/process_android.cc
|
| diff --git a/runtime/bin/process_android.cc b/runtime/bin/process_android.cc
|
| index 58faa0450a0ef049fcb3f96daa5d58c07794520f..352df04362016eefb9a1e9dc0b0fcc14b3efa39d 100644
|
| --- a/runtime/bin/process_android.cc
|
| +++ b/runtime/bin/process_android.cc
|
| @@ -468,7 +468,8 @@ int Process::Start(const char* path,
|
| }
|
| VOID_TEMP_FAILURE_RETRY(close(read_err[1]));
|
|
|
| - if (working_directory != NULL && chdir(working_directory) == -1) {
|
| + if (working_directory != NULL &&
|
| + TEMP_FAILURE_RETRY(chdir(working_directory)) == -1) {
|
| ReportChildError(exec_control[1]);
|
| }
|
|
|
| @@ -493,7 +494,7 @@ int Process::Start(const char* path,
|
|
|
| if (!detach) {
|
| int event_fds[2];
|
| - result = pipe(event_fds);
|
| + result = TEMP_FAILURE_RETRY(pipe(event_fds));
|
| if (result < 0) {
|
| SetChildOsErrorMessage(os_error_message);
|
| VOID_TEMP_FAILURE_RETRY(close(read_in[0]));
|
|
|