Index: bin/process_impl.dart |
=================================================================== |
--- bin/process_impl.dart (revision 380) |
+++ bin/process_impl.dart (working copy) |
@@ -122,10 +122,10 @@ |
if (_closed) { |
throw new ProcessException("Process closed"); |
} |
- _in.close(); |
- _out.close(); |
- _err.close(); |
- _exitHandler.close(); |
+ if (_in._id != 0) { _in.close(); } |
+ if (_out._id != 0) { _out.close(); } |
+ if (_err._id != 0) { _err.close(); } |
+ if (_exitHandler._id != 0) { _exitHandler.close(); } |
_closed = true; |
} |