Index: runtime/bin/process_impl.dart |
diff --git a/runtime/bin/process_impl.dart b/runtime/bin/process_impl.dart |
index c786f9cb3ffbd1757a90bd2935d191f9aa4221ce..bdb5d6aca4a070ea538663d47eda8f873898091d 100644 |
--- a/runtime/bin/process_impl.dart |
+++ b/runtime/bin/process_impl.dart |
@@ -331,6 +331,9 @@ class _NonInteractiveProcess { |
// Start the underlying process. |
_process = new _Process.start(path, arguments, options); |
+ // Make sure stdin is closed. |
+ _process.onStart = _process.stdin.close; |
+ |
// Setup process error handling. |
_process.onError = (e) => _completer.completeException(e); |