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

Unified Diff: runtime/bin/process.h

Issue 890633002: Add an option for starting a detached process with stdio connected (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 5 years, 11 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 | « no previous file | 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 189212286f9362fd3fe7bb3c44e75a627f110dae..b6babd30e6546dbcbe0e5d6bb1ee8c98adae03e9 100644
--- a/runtime/bin/process.h
+++ b/runtime/bin/process.h
@@ -77,6 +77,14 @@ enum ProcessSignals {
};
+// To be kept in sync with ProcessStartMode consts in sdk/lib/io/process.dart.
+enum ProcessStartMode {
+ kNormal = 0,
+ kDetached = 1,
+ kDetachedWithStdio = 2,
+};
+
+
class Process {
public:
// Start a new process providing access to stdin, stdout, stderr and
@@ -87,7 +95,7 @@ class Process {
const char* working_directory,
char* environment[],
intptr_t environment_length,
- bool detached,
+ ProcessStartMode mode,
intptr_t* in,
intptr_t* out,
intptr_t* err,
« no previous file with comments | « no previous file | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698