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

Side by Side Diff: runtime/bin/process.h

Issue 798743004: Add support for starting a detached process (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef BIN_PROCESS_H_ 5 #ifndef BIN_PROCESS_H_
6 #define BIN_PROCESS_H_ 6 #define BIN_PROCESS_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "bin/io_buffer.h" 9 #include "bin/io_buffer.h"
10 #include "bin/lockers.h" 10 #include "bin/lockers.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class Process { 80 class Process {
81 public: 81 public:
82 // Start a new process providing access to stdin, stdout, stderr and 82 // Start a new process providing access to stdin, stdout, stderr and
83 // process exit streams. 83 // process exit streams.
84 static int Start(const char* path, 84 static int Start(const char* path,
85 char* arguments[], 85 char* arguments[],
86 intptr_t arguments_length, 86 intptr_t arguments_length,
87 const char* working_directory, 87 const char* working_directory,
88 char* environment[], 88 char* environment[],
89 intptr_t environment_length, 89 intptr_t environment_length,
90 bool detached,
90 intptr_t* in, 91 intptr_t* in,
91 intptr_t* out, 92 intptr_t* out,
92 intptr_t* err, 93 intptr_t* err,
93 intptr_t* id, 94 intptr_t* id,
94 intptr_t* exit_handler, 95 intptr_t* exit_handler,
95 char** os_error_message); 96 char** os_error_message);
96 97
97 static bool Wait(intptr_t id, 98 static bool Wait(intptr_t id,
98 intptr_t in, 99 intptr_t in,
99 intptr_t out, 100 intptr_t out,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 intptr_t data_size_; 276 intptr_t data_size_;
276 277
277 // Number of free bytes in the last node in the list. 278 // Number of free bytes in the last node in the list.
278 intptr_t free_size_; 279 intptr_t free_size_;
279 }; 280 };
280 281
281 } // namespace bin 282 } // namespace bin
282 } // namespace dart 283 } // namespace dart
283 284
284 #endif // BIN_PROCESS_H_ 285 #endif // BIN_PROCESS_H_
OLDNEW
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698