diff --git a/exec.c b/exec.c index d36209719..beb3c8c7c 100644 --- a/exec.c +++ b/exec.c @@ -1346,7 +1346,7 @@ void exec( job_t *j ) for( io = j->io; io; io=io->next ) { - if( io->io_mode == IO_FILE ) + if( io->io_mode == IO_FILE && wcscmp(io->param1.filename, L"/dev/null" )) { skip_fork = 0; }