A flag got reversed, causing children to execute even if an IO redirection failed

darcs-hash:20060220014036-ac50b-43156940397e0535cfa9dd7e88d61e4ca4bab13b.gz
This commit is contained in:
axel 2006-02-20 11:40:36 +10:00
parent 7740035d14
commit b21cccf5f0

4
exec.c
View File

@ -262,7 +262,7 @@ static int handle_child_io( io_data_t *io, int exit_on_error )
if( io->fd > 2 )
{
/*
Make sure the fd used by this redirection is not used by i.e. a pipe.
Make sure the fd used by this redirection is not used by e.g. a pipe.
*/
free_fd( io, io->fd );
}
@ -405,7 +405,7 @@ static int setup_child_process( job_t *j, process_t *p )
if( !res )
{
res = handle_child_io( j->io, (p==0) );
res = handle_child_io( j->io, (p!=0) );
}
/* Set the handling for job control signals back to the default. */