OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 class _ProcessStartStatus { | 5 class _ProcessStartStatus { |
6 int _errorCode; // Set to OS error code if process start failed. | 6 int _errorCode; // Set to OS error code if process start failed. |
7 String _errorMessage; // Set to OS error message if process start failed. | 7 String _errorMessage; // Set to OS error message if process start failed. |
8 } | 8 } |
9 | 9 |
10 | 10 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 bool _start(String path, | 74 bool _start(String path, |
75 List<String> arguments, | 75 List<String> arguments, |
76 Socket input, | 76 Socket input, |
77 Socket output, | 77 Socket output, |
78 Socket error, | 78 Socket error, |
79 Socket exitHandler, | 79 Socket exitHandler, |
80 _ProcessStartStatus status) native "Process_Start"; | 80 _ProcessStartStatus status) native "Process_Start"; |
81 | 81 |
82 void _processExit(int pid) native "Process_Exit"; | 82 void _processExit(int pid) native "Process_Exit"; |
83 | 83 |
84 InputStream get stdoutStream() { | 84 InputStream2 get stdoutStream() { |
85 if (_closed) { | 85 if (_closed) { |
86 throw new ProcessException("Process closed"); | 86 throw new ProcessException("Process closed"); |
87 } | 87 } |
88 return _in.inputStream; | 88 return _in.inputStream2; |
89 } | 89 } |
90 | 90 |
91 InputStream get stderrStream() { | 91 InputStream2 get stderrStream() { |
92 if (_closed) { | 92 if (_closed) { |
93 throw new ProcessException("Process closed"); | 93 throw new ProcessException("Process closed"); |
94 } | 94 } |
95 return _err.inputStream; | 95 return _err.inputStream2; |
96 } | 96 } |
97 | 97 |
98 OutputStream get stdinStream() { | 98 OutputStream get stdinStream() { |
99 if (_closed) { | 99 if (_closed) { |
100 throw new ProcessException("Process closed"); | 100 throw new ProcessException("Process closed"); |
101 } | 101 } |
102 return _out.outputStream; | 102 return _out.outputStream; |
103 } | 103 } |
104 | 104 |
105 bool kill() { | 105 bool kill() { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 Socket _in; | 144 Socket _in; |
145 Socket _out; | 145 Socket _out; |
146 Socket _err; | 146 Socket _err; |
147 Socket _exitHandler; | 147 Socket _exitHandler; |
148 int _pid; | 148 int _pid; |
149 bool _closed; | 149 bool _closed; |
150 bool _killed; | 150 bool _killed; |
151 bool _started; | 151 bool _started; |
152 var _exitHandlerCallback; | 152 var _exitHandlerCallback; |
153 } | 153 } |
OLD | NEW |