| Index: runtime/bin/process_android.cc
|
| diff --git a/runtime/bin/process_android.cc b/runtime/bin/process_android.cc
|
| index fafd749768a5e79d8721c0ff7873d89c1d7f8a60..1e7c2ada8f86c4c5e8ff6094585aded6cc8edc9f 100644
|
| --- a/runtime/bin/process_android.cc
|
| +++ b/runtime/bin/process_android.cc
|
| @@ -675,7 +675,7 @@ intptr_t Process::SetSignalHandler(intptr_t signal) {
|
| }
|
| if (!found) return -1;
|
| int fds[2];
|
| - if (NO_RETRY_EXPECTED(pipe(fds)) != 0) {
|
| + if (NO_RETRY_EXPECTED(pipe2(fds, O_CLOEXEC)) != 0) {
|
| return -1;
|
| }
|
| if (!FDUtils::SetNonBlocking(fds[0])) {
|
|
|