| Index: runtime/bin/platform_macos.cc
|
| diff --git a/runtime/bin/platform_macos.cc b/runtime/bin/platform_macos.cc
|
| index 81455ba3d3988ae7348433d517836d4b83fb96ed..c5759d8c427f344aca99aeb92afa5ab0e5428a4c 100644
|
| --- a/runtime/bin/platform_macos.cc
|
| +++ b/runtime/bin/platform_macos.cc
|
| @@ -21,6 +21,15 @@ 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;
|
| }
|
|
|
|
|