protected void openOutput(int fd, FileDescriptor fileDescriptor) throws IOException {
FileOutputStream out = new FileOutputStream(fileDescriptor);
NioOutputStreamChannel nioChannel = NioOutputStreamChannel.create(this.process, out);
nioChannel.config().setAutoRead(false);
this.channelFuture = nioChannel.newSucceededFuture();
//nioChannel.pipeline().addLast("debug", new DebugHandler("output:" + fd + " // " + process.getPosix().getpid()));
process.getEventLoop().getEventLoopGroup().register(nioChannel);
this.type = Type.OUTPUT;