} else if (STDIO_IGNORE.equals(type)) {
if (log.isDebugEnabled()) {
log.debug("Setting fd {} to discard all output", arg);
}
StreamPiper piper = new StreamPiper(in, new BitBucketOutputStream(), false);
piper.start(parent.runner.getUnboundedPool());
} else if (STDIO_FD.equals(type)) {
StreamPiper piper;
switch (getStdioFD(opts)) {
case 1:
piper = new StreamPiper(in, parent.runner.getStdout(), false);
piper.start(parent.runner.getUnboundedPool());
break;
case 2:
piper = new StreamPiper(in, parent.runner.getStderr(), false);
piper.start(parent.runner.getUnboundedPool());
break;
default:
throw new AssertionError("Only FDs 0, 1, and 2 supported");
}
} else {