mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 02:12:08 +08:00
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:
parent
36e08dc49e
commit
e54ce9a147
8
exec.c
8
exec.c
|
@ -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] );
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user