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

Side by Side Diff: runtime/bin/process_patch.dart

Issue 11665004: Add exitCode setter to set the exit code returned by the Dart VM (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Actually upload the correct patch Created 8 years 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
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 patch class _WindowsCodePageDecoder { 5 patch class _WindowsCodePageDecoder {
6 /* patch */ static String _decodeBytes(List<int> bytes) 6 /* patch */ static String _decodeBytes(List<int> bytes)
7 native "SystemEncodingToString"; 7 native "SystemEncodingToString";
8 } 8 }
9 9
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 /* patch */ static Future<ProcessResult> run(String executable, 25 /* patch */ static Future<ProcessResult> run(String executable,
26 List<String> arguments, 26 List<String> arguments,
27 [ProcessOptions options]) { 27 [ProcessOptions options]) {
28 return new _NonInteractiveProcess(executable, arguments, options)._result; 28 return new _NonInteractiveProcess(executable, arguments, options)._result;
29 } 29 }
30 } 30 }
31 31
32 32
33 patch class _ProcessUtils { 33 patch class _ProcessUtils {
34 /* patch */ static _exit(int status) native "Exit"; 34 /* patch */ static _exit(int status) native "Process_Exit";
35 /* patch */ static _setExitCode(int status) native "Process_SetExitCode";
35 } 36 }
36 37
37 38
38 class _ProcessStartStatus { 39 class _ProcessStartStatus {
39 int _errorCode; // Set to OS error code if process start failed. 40 int _errorCode; // Set to OS error code if process start failed.
40 String _errorMessage; // Set to OS error message if process start failed. 41 String _errorMessage; // Set to OS error message if process start failed.
41 } 42 }
42 43
43 44
44 class _ProcessImpl extends NativeFieldWrapperClass1 implements Process { 45 class _ProcessImpl extends NativeFieldWrapperClass1 implements Process {
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 375
375 class _ProcessResult implements ProcessResult { 376 class _ProcessResult implements ProcessResult {
376 const _ProcessResult(int this.exitCode, 377 const _ProcessResult(int this.exitCode,
377 String this.stdout, 378 String this.stdout,
378 String this.stderr); 379 String this.stderr);
379 380
380 final int exitCode; 381 final int exitCode;
381 final String stdout; 382 final String stdout;
382 final String stderr; 383 final String stderr;
383 } 384 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698