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

Unified Diff: runtime/bin/platform_linux.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_android.cc ('k') | runtime/bin/platform_macos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_linux.cc
diff --git a/runtime/bin/platform_linux.cc b/runtime/bin/platform_linux.cc
index 495644f385604603472dd1caf0b3a8ddc45b31c4..e9ca3779503f8760257fb2ed1fa69ec5c80c61b6 100644
--- a/runtime/bin/platform_linux.cc
+++ b/runtime/bin/platform_linux.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;
}
« no previous file with comments | « runtime/bin/platform_android.cc ('k') | runtime/bin/platform_macos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698