--- old/src/java.base/unix/classes/java/lang/ProcessImpl.java 2018-12-07 17:55:14.000000000 +0000 +++ new/src/java.base/unix/classes/java/lang/ProcessImpl.java 2018-12-07 17:55:13.000000000 +0000 @@ -412,7 +412,7 @@ new BufferedOutputStream( new FileOutputStream(newFileDescriptor(fds[0]))); - stdout = (fds[1] == -1) ? + stdout = (fds[1] == -1 || forceNullOutputStream) ? ProcessBuilder.NullInputStream.INSTANCE : new BufferedInputStream( stdout_inner_stream = @@ -446,7 +446,7 @@ ProcessBuilder.NullOutputStream.INSTANCE : new ProcessPipeOutputStream(fds[0]); - stdout = (fds[1] == -1) ? + stdout = (fds[1] == -1 || forceNullOutputStream) ? ProcessBuilder.NullInputStream.INSTANCE : new DeferredCloseProcessPipeInputStream(fds[1]);