diff options
author | liljencrantz <liljencrantz@gmail.com> | 2007-09-22 07:49:55 +1000 |
---|---|---|
committer | liljencrantz <liljencrantz@gmail.com> | 2007-09-22 07:49:55 +1000 |
commit | 1420744669a3207c7259c0451b6c427435edc48b (patch) | |
tree | d6f2ae33bb1826cb3056a47937f5300c18a0197a | |
parent | 048f903a9d84306561c5a741898e7f16f45fb514 (diff) |
Fix rather large performance issue on systems with slow fork syscall - a fork was used whenever redirecting output to /dev/null and using a builtin, completely unneeded.
darcs-hash:20070921214955-75c98-b513df263751506e5e82f97eafa08041228bc8de.gz
-rw-r--r-- | exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |