Minor bug fix - the parse_util_set_argv function can trigger an event, hence signals have to be unblocked when it is called.

darcs-hash:20071015132006-75c98-4ec10e4e26ea63c86c57f7e1f24f3d0fc60995b5.gz
This commit is contained in:
liljencrantz 2007-10-15 23:20:06 +10:00
parent 36e08dc49e
commit e54ce9a147

8
exec.c
View File

@ -1100,7 +1100,15 @@ void exec( job_t *j )
current_block->param2.function_call_process = p;
current_block->param1.function_call_name = halloc_register( current_block, wcsdup( p->argv[0] ) );
/*
set_argv might trigger an event
handler, hence we need to unblock
signals.
*/
signal_unblock();
parse_util_set_argv( p->argv+1, named_arguments );
signal_block();
parser_forbid_function( p->argv[0] );