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

Unified Diff: runtime/bin/process.h

Issue 8227010: Fix deadlock in process exit handling (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments from @ager Created 9 years, 2 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/builtin_in.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process.h
diff --git a/runtime/bin/process.h b/runtime/bin/process.h
index 04a513c7ee1a05c8c85ac8e2c841d6e7e1ca8708..f12d62493280281304de1ff9362bbb02b34d623b 100644
--- a/runtime/bin/process.h
+++ b/runtime/bin/process.h
@@ -11,6 +11,8 @@
class Process {
public:
+ // Start a new process providing access to stdin, stdout, stderr and
+ // process exit streams.
static int Start(const char* path,
char* arguments[],
intptr_t arguments_length,
@@ -22,8 +24,12 @@ class Process {
char* os_error_message,
int os_error_message_len);
+ // Kill a process with a given pid.
static bool Kill(intptr_t id);
+ // Indicate that the process with the given pid has exited.
+ static void Exit(intptr_t id);
+
DISALLOW_ALLOCATION();
DISALLOW_IMPLICIT_CONSTRUCTORS(Process);
};
« no previous file with comments | « runtime/bin/builtin_in.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698