| Index: runtime/bin/platform_android.cc
|
| diff --git a/runtime/bin/platform_android.cc b/runtime/bin/platform_android.cc
|
| index 8d9bcf76154f8fb907994331ca92371c7fc5c016..c69f682db76cdb05b6bb7ec61f5114d1714e323c 100644
|
| --- a/runtime/bin/platform_android.cc
|
| +++ b/runtime/bin/platform_android.cc
|
| @@ -20,6 +20,14 @@ bool Platform::Initialize() {
|
| perror("Setting signal handler failed");
|
| return false;
|
| }
|
| + // Unblock SIGCHLD as waiting on spawned child process depends
|
| + // on successful interception of this signal.
|
| + sigset_t newset;
|
| + sigemptyset(&newset);
|
| + sigaddset(&newset, SIGCHLD);
|
| + if (sigprocmask(SIG_UNBLOCK, &newset, NULL) != 0) {
|
| + perror("Unblocking SIGCHLD signal failed");
|
| + }
|
| return true;
|
| }
|
|
|
|
|