OLD | NEW |
---|---|
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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 void _sleep(int millis) native "Process_Sleep"; | 128 /* patch */ static void _sleep(int millis) native "Process_Sleep"; |
129 /* patch */ static int _pid(Process process) native "Process_Pid"; | 129 /* patch */ static int _pid(Process process) native "Process_Pid"; |
130 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { | 130 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { |
131 if (signal != ProcessSignal.SIGHUP && | 131 if (signal != ProcessSignal.SIGHUP && |
132 signal != ProcessSignal.SIGINT && | 132 signal != ProcessSignal.SIGINT && |
133 signal != ProcessSignal.SIGTERM && | |
Bob Nystrom
2014/02/07 18:20:52
Drive-by comment:
This looks like it's adding sup
Anders Johnsen
2014/02/13 10:43:34
Partly, signals are indeed tested, but not SIGTERM
| |
133 (Platform.isWindows || | 134 (Platform.isWindows || |
134 (signal != ProcessSignal.SIGUSR1 && | 135 (signal != ProcessSignal.SIGUSR1 && |
135 signal != ProcessSignal.SIGUSR2 && | 136 signal != ProcessSignal.SIGUSR2 && |
136 signal != ProcessSignal.SIGWINCH))) { | 137 signal != ProcessSignal.SIGWINCH))) { |
137 throw new SignalException( | 138 throw new SignalException( |
138 "Listening for signal $signal is not supported"); | 139 "Listening for signal $signal is not supported"); |
139 } | 140 } |
140 if (_signalControllers[signal._signalNumber] == null) { | 141 if (_signalControllers[signal._signalNumber] == null) { |
141 _signalControllers[signal._signalNumber] = new _SignalController(signal); | 142 _signalControllers[signal._signalNumber] = new _SignalController(signal); |
142 } | 143 } |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
532 const _ProcessResult(int this.pid, | 533 const _ProcessResult(int this.pid, |
533 int this.exitCode, | 534 int this.exitCode, |
534 this.stdout, | 535 this.stdout, |
535 this.stderr); | 536 this.stderr); |
536 | 537 |
537 final int pid; | 538 final int pid; |
538 final int exitCode; | 539 final int exitCode; |
539 final stdout; | 540 final stdout; |
540 final stderr; | 541 final stderr; |
541 } | 542 } |
OLD | NEW |