aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-09-22 07:49:55 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-09-22 07:49:55 +1000
commit1420744669a3207c7259c0451b6c427435edc48b (patch)
treed6f2ae33bb1826cb3056a47937f5300c18a0197a
parent048f903a9d84306561c5a741898e7f16f45fb514 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index d3620971..beb3c8c7 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;
}