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

Unified Diff: runtime/bin/process_macos.cc

Issue 10545134: Give Process.kill an optional argument to specify which signal to send. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Changes based on ager's review. Created 8 years, 6 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
Index: runtime/bin/process_macos.cc
diff --git a/runtime/bin/process_macos.cc b/runtime/bin/process_macos.cc
index f71b461dd36a3bd240ca84d310e9223c33cf1293..f152b07475d9c17e4fc633d96b970a03c0c9ab2e 100644
--- a/runtime/bin/process_macos.cc
+++ b/runtime/bin/process_macos.cc
@@ -550,8 +550,8 @@ int Process::Start(const char* path,
}
-bool Process::Kill(intptr_t id) {
- int result = TEMP_FAILURE_RETRY(kill(id, SIGKILL));
+bool Process::Kill(intptr_t id, int signal) {
+ int result = TEMP_FAILURE_RETRY(kill(id, signal));
if (result == -1) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698