mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 23:24:39 +00:00
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
This commit is contained in:
parent
048f903a9d
commit
1420744669
1 changed files with 1 additions and 1 deletions
2
exec.c
2
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue