| OLD | NEW | 
|---|
| 1 // Copyright (c) 2014, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 part of "io.dart"; | 5 part of dart.io; | 
| 6 | 6 | 
| 7 // TODO(ager): The only reason for this class is that we | 7 // TODO(ager): The only reason for this class is that we | 
| 8 // cannot patch a top-level at this point. | 8 // cannot patch a top-level at this point. | 
| 9 class _ProcessUtils { | 9 class _ProcessUtils { | 
| 10   external static void _exit(int status); | 10   external static void _exit(int status); | 
| 11   external static void _setExitCode(int status); | 11   external static void _setExitCode(int status); | 
| 12   external static int _getExitCode(); | 12   external static int _getExitCode(); | 
| 13   external static void _sleep(int millis); | 13   external static void _sleep(int millis); | 
| 14   external static int _pid(Process process); | 14   external static int _pid(Process process); | 
| 15   external static Stream<ProcessSignal> _watchSignal(ProcessSignal signal); | 15   external static Stream<ProcessSignal> _watchSignal(ProcessSignal signal); | 
| (...skipping 577 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 593   final int errorCode; | 593   final int errorCode; | 
| 594 | 594 | 
| 595   const ProcessException(this.executable, this.arguments, | 595   const ProcessException(this.executable, this.arguments, | 
| 596       [this.message = "", this.errorCode = 0]); | 596       [this.message = "", this.errorCode = 0]); | 
| 597   String toString() { | 597   String toString() { | 
| 598     var msg = (message == null) ? 'OS error code: $errorCode' : message; | 598     var msg = (message == null) ? 'OS error code: $errorCode' : message; | 
| 599     var args = arguments.join(' '); | 599     var args = arguments.join(' '); | 
| 600     return "ProcessException: $msg\n  Command: $executable $args"; | 600     return "ProcessException: $msg\n  Command: $executable $args"; | 
| 601   } | 601   } | 
| 602 } | 602 } | 
| OLD | NEW | 
|---|