From b21cccf5f0cbc6f1849bed73a0ef3b0af0870480 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 20 Feb 2006 11:40:36 +1000 Subject: [PATCH] A flag got reversed, causing children to execute even if an IO redirection failed darcs-hash:20060220014036-ac50b-43156940397e0535cfa9dd7e88d61e4ca4bab13b.gz --- exec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index 90d930bfa..7738877d7 100644 --- a/exec.c +++ b/exec.c @@ -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. */