8211844: [aix] ProcessBuilder: Piping between created processes does not work

Reviewed-by: cjplummer, simonis, goetz
This commit is contained in:
Steve Groeger 2018-12-07 14:35:57 +01:00
parent 7305281552
commit 4de59847eb
2 changed files with 2 additions and 3 deletions

View file

@ -412,7 +412,7 @@ final class ProcessImpl extends Process {
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 @@ final class ProcessImpl extends Process {
ProcessBuilder.NullOutputStream.INSTANCE :
new ProcessPipeOutputStream(fds[0]);
stdout = (fds[1] == -1) ?
stdout = (fds[1] == -1 || forceNullOutputStream) ?
ProcessBuilder.NullInputStream.INSTANCE :
new DeferredCloseProcessPipeInputStream(fds[1]);