Skip to content

Commit df9f467

Browse files
committed
flush before closing.
1 parent 3fa38e5 commit df9f467

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/main/java/com/diffplug/spotless/ProcessRunner.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ public LongRunningProcess start(@Nullable File cwd, @Nullable Map<String, String
164164
// write stdin
165165
process.getOutputStream().write(stdin);
166166
process.getOutputStream().flush();
167+
process.getOutputStream().close();
167168
return new LongRunningProcess(process, args, outputFut, errorFut);
168169
}
169170

0 commit comments

Comments
 (0)