| OLD | NEW |
| 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 /** Exit the Dart VM process with the given [status] code. */ |
| 6 void exit(int status) { |
| 7 if (status is !int) { |
| 8 throw new IllegalArgumentException("int status expected"); |
| 9 } |
| 10 _exit(status); |
| 11 } |
| 12 |
| 5 /** | 13 /** |
| 6 * [Process] is used to start new processes using the static | 14 * [Process] is used to start new processes using the static |
| 7 * [start] and [run] methods. | 15 * [start] and [run] methods. |
| 8 */ | 16 */ |
| 9 class Process { | 17 class Process { |
| 10 /** | 18 /** |
| 11 * Starts a process running the [executable] with the specified | 19 * Starts a process running the [executable] with the specified |
| 12 * [arguments]. Returns a [Process] instance that can be used to | 20 * [arguments]. Returns a [Process] instance that can be used to |
| 13 * interact with the process. | 21 * interact with the process. |
| 14 * | 22 * |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 /** | 235 /** |
| 228 * Contains the system message for the process exception if any. | 236 * Contains the system message for the process exception if any. |
| 229 */ | 237 */ |
| 230 final String message; | 238 final String message; |
| 231 | 239 |
| 232 /** | 240 /** |
| 233 * Contains the OS error code for the process exception if any. | 241 * Contains the OS error code for the process exception if any. |
| 234 */ | 242 */ |
| 235 final int errorCode; | 243 final int errorCode; |
| 236 } | 244 } |
| OLD | NEW |