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

Unified Diff: runtime/bin/process_linux.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_linux.cc
diff --git a/runtime/bin/process_linux.cc b/runtime/bin/process_linux.cc
index 184173aa5c4d8740c24bba322132ebd63fe27412..a06556112b2a66fc33b31faa1b9a0b858f0fe829 100644
--- a/runtime/bin/process_linux.cc
+++ b/runtime/bin/process_linux.cc
@@ -551,8 +551,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