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

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

Issue 200233002: Add exitCode getter counterpart to the existing setter in dart:io. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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/process.cc ('k') | sdk/lib/_internal/lib/io_patch.dart » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 native "Process_SetSignalHandler"; 118 native "Process_SetSignalHandler";
119 /* patch */ static int _clearSignalHandler(int signal) 119 /* patch */ static int _clearSignalHandler(int signal)
120 native "Process_ClearSignalHandler"; 120 native "Process_ClearSignalHandler";
121 } 121 }
122 122
123 123
124 patch class _ProcessUtils { 124 patch class _ProcessUtils {
125 /* patch */ static void _exit(int status) native "Process_Exit"; 125 /* patch */ static void _exit(int status) native "Process_Exit";
126 /* patch */ static void _setExitCode(int status) 126 /* patch */ static void _setExitCode(int status)
127 native "Process_SetExitCode"; 127 native "Process_SetExitCode";
128 /* patch */ static int _getExitCode() native "Process_GetExitCode";
128 /* patch */ static void _sleep(int millis) native "Process_Sleep"; 129 /* patch */ static void _sleep(int millis) native "Process_Sleep";
129 /* patch */ static int _pid(Process process) native "Process_Pid"; 130 /* patch */ static int _pid(Process process) native "Process_Pid";
130 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { 131 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) {
131 if (signal != ProcessSignal.SIGHUP && 132 if (signal != ProcessSignal.SIGHUP &&
132 signal != ProcessSignal.SIGINT && 133 signal != ProcessSignal.SIGINT &&
133 signal != ProcessSignal.SIGTERM && 134 signal != ProcessSignal.SIGTERM &&
134 (Platform.isWindows || 135 (Platform.isWindows ||
135 (signal != ProcessSignal.SIGUSR1 && 136 (signal != ProcessSignal.SIGUSR1 &&
136 signal != ProcessSignal.SIGUSR2 && 137 signal != ProcessSignal.SIGUSR2 &&
137 signal != ProcessSignal.SIGWINCH))) { 138 signal != ProcessSignal.SIGWINCH))) {
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 const _ProcessResult(int this.pid, 534 const _ProcessResult(int this.pid,
534 int this.exitCode, 535 int this.exitCode,
535 this.stdout, 536 this.stdout,
536 this.stderr); 537 this.stderr);
537 538
538 final int pid; 539 final int pid;
539 final int exitCode; 540 final int exitCode;
540 final stdout; 541 final stdout;
541 final stderr; 542 final stderr;
542 } 543 }
OLDNEW
« no previous file with comments | « runtime/bin/process.cc ('k') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698