mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Only insert fishd barrier after non-builtin commands to increase performance
darcs-hash:20051129195132-ac50b-7fcf7b2458b162c9c668fe823f17dc070604b00d.gz
This commit is contained in:
parent
51c345311a
commit
2789da6a1a
1 changed files with 8 additions and 1 deletions
9
parser.c
9
parser.c
|
@ -1707,7 +1707,6 @@ static void eval_job( tokenizer *tok )
|
|||
|
||||
current_block->job = j;
|
||||
|
||||
proc_had_barrier=0;
|
||||
|
||||
if( is_interactive )
|
||||
{
|
||||
|
@ -1763,7 +1762,15 @@ static void eval_job( tokenizer *tok )
|
|||
|
||||
if(!skip )
|
||||
{
|
||||
int was_builtin = 0;
|
||||
if( j->first_process->type==INTERNAL_BUILTIN && !j->first_process->next)
|
||||
was_builtin = 1;
|
||||
|
||||
exec( j );
|
||||
|
||||
/* Only external commands require a new fishd barrier */
|
||||
if( !was_builtin )
|
||||
proc_had_barrier=0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue