Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(657)

Unified Diff: runtime/bin/process_impl.dart

Issue 8270001: Fix the handling of exceptions from process start (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed print Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/socket_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/process_impl.dart
diff --git a/runtime/bin/process_impl.dart b/runtime/bin/process_impl.dart
index da7610f16d2d44257b2dda366fd6061aa532b7d5..98d72b4811ffc2f630c5209f487e6439854508dc 100644
--- a/runtime/bin/process_impl.dart
+++ b/runtime/bin/process_impl.dart
@@ -122,10 +122,10 @@ class _Process implements Process {
if (_closed) {
throw new ProcessException("Process closed");
}
- if (_in._id != 0) { _in.close(); }
- if (_out._id != 0) { _out.close(); }
- if (_err._id != 0) { _err.close(); }
- if (_exitHandler._id != 0) { _exitHandler.close(); }
+ _in.close();
+ _out.close();
+ _err.close();
+ _exitHandler.close();
_closed = true;
}
« no previous file with comments | « no previous file | runtime/bin/socket_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698