Fix compile error (oops)

This commit is contained in:
ridiculousfish 2012-03-27 19:10:21 -07:00
parent a62f300753
commit 00d3e18780

View file

@ -257,7 +257,7 @@ static int handle_child_io( io_data_t *io )
return -1;
}
if( write_pipe )
if( write_pipe_idx > 0 )
{
exec_close( io->param1.pipe_fd[0]);
exec_close( io->param1.pipe_fd[1]);