From 2789da6a1a943f43c439de1fc6e3e8f612ca6a5d Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 30 Nov 2005 05:51:32 +1000 Subject: [PATCH] Only insert fishd barrier after non-builtin commands to increase performance darcs-hash:20051129195132-ac50b-7fcf7b2458b162c9c668fe823f17dc070604b00d.gz --- parser.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/parser.c b/parser.c index 557189c8d..5e0cd5ad5 100644 --- a/parser.c +++ b/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 {