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

Issue 10532024: Close stdin in Process.run. (Closed)

Created:
8 years, 6 months ago by Anders Johnsen
Modified:
8 years, 6 months ago
Reviewers:
Mads Ager (google)
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Close stdin in Process.run. This fixes an open pipe issue. BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=8321

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -0 lines) Patch
M runtime/bin/process_impl.dart View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Anders Johnsen
8 years, 6 months ago (2012-06-06 10:18:42 UTC) #1
Mads Ager (google)
8 years, 6 months ago (2012-06-06 10:25:25 UTC) #2
LGTM! Thanks for fixing this!

Another way to fix it would be to call _process.close() in _checkDone when you
are done. I like doing it in onStart though since it also makes it explicit that
stdin is not used.

Powered by Google App Engine
This is Rietveld 408576698