Skip to content

Commit

Permalink
Do not close the process output stream on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Sep 15, 2017
1 parent 2c5c287 commit 4166615
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ public void close() throws IOException {
Signals.unregister(entry.getKey().name(), entry.getValue());
}
reader.close();
writer.close();
// Do not close the writer / output, as it's the
// process output stream and we don't want to close it
writer.flush();
if (consoleOutputCP > 0) {
setConsoleOutputCP(consoleOutputCP);
}
Expand Down

0 comments on commit 4166615

Please sign in to comment.