| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 if (signal != ProcessSignal.SIGHUP && | 132 if (signal != ProcessSignal.SIGHUP && |
| 133 signal != ProcessSignal.SIGINT && | 133 signal != ProcessSignal.SIGINT && |
| 134 signal != ProcessSignal.SIGTERM && | 134 signal != ProcessSignal.SIGTERM && |
| 135 (Platform.isWindows || | 135 (Platform.isWindows || |
| 136 (signal != ProcessSignal.SIGUSR1 && | 136 (signal != ProcessSignal.SIGUSR1 && |
| 137 signal != ProcessSignal.SIGUSR2 && | 137 signal != ProcessSignal.SIGUSR2 && |
| 138 signal != ProcessSignal.SIGWINCH))) { | 138 signal != ProcessSignal.SIGWINCH))) { |
| 139 throw new SignalException( | 139 throw new SignalException( |
| 140 "Listening for signal $signal is not supported"); | 140 "Listening for signal $signal is not supported"); |
| 141 } | 141 } |
| 142 return _watchSignalInternal(signal); |
| 143 } |
| 144 |
| 145 static Stream<ProcessSignal> _watchSignalInternal(ProcessSignal signal) { |
| 142 if (_signalControllers[signal._signalNumber] == null) { | 146 if (_signalControllers[signal._signalNumber] == null) { |
| 143 _signalControllers[signal._signalNumber] = new _SignalController(signal); | 147 _signalControllers[signal._signalNumber] = new _SignalController(signal); |
| 144 } | 148 } |
| 145 return _signalControllers[signal._signalNumber].stream; | 149 return _signalControllers[signal._signalNumber].stream; |
| 146 } | 150 } |
| 147 } | 151 } |
| 148 | 152 |
| 149 | 153 |
| 150 class _ProcessStartStatus { | 154 class _ProcessStartStatus { |
| 151 int _errorCode; // Set to OS error code if process start failed. | 155 int _errorCode; // Set to OS error code if process start failed. |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 550 const _ProcessResult(int this.pid, | 554 const _ProcessResult(int this.pid, |
| 551 int this.exitCode, | 555 int this.exitCode, |
| 552 this.stdout, | 556 this.stdout, |
| 553 this.stderr); | 557 this.stderr); |
| 554 | 558 |
| 555 final int pid; | 559 final int pid; |
| 556 final int exitCode; | 560 final int exitCode; |
| 557 final stdout; | 561 final stdout; |
| 558 final stderr; | 562 final stderr; |
| 559 } | 563 } |
| OLD | NEW |