diff --git a/runtime/bin/process_patch.dart b/runtime/bin/process_patch.dart index 9e374ae8b72..2de6ba608cd 100644 --- a/runtime/bin/process_patch.dart +++ b/runtime/bin/process_patch.dart @@ -451,6 +451,9 @@ class _ProcessImpl extends _ProcessImplNativeWrapper with _ServiceObject return encoding.decode(output); } + _stdin._sink.destroy(); + _processes.remove(_serviceId); + return new _ProcessResult( result[0], result[1],