Skip to content

Commit

Permalink
Fix Issue 10395 - [std.stdio] Closing a popened File with unread outp…
Browse files Browse the repository at this point in the history
…ut throws an exception
  • Loading branch information
jercaianu committed Oct 17, 2017
1 parent 459becf commit 04b0eee
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion std/stdio.d
Expand Up @@ -546,7 +546,6 @@ Throws: $(D ErrnoException) in case of error.
auto res = pclose(_p.handle);
errnoEnforce(res != -1,
"Could not close pipe `"~_name~"'");
errnoEnforce(res == 0, format("Command returned %d", res));
_p.handle = null;
}
}
Expand Down

0 comments on commit 04b0eee

Please sign in to comment.