Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(476)

Unified Diff: runtime/bin/platform_macos.cc

Issue 10834423: Fix for bug dart 3639: Process.run gets stuck on Mac (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added periods Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/platform_linux.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « runtime/bin/platform_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698