mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
Remove finsihed jobs after events
darcs-hash:20051009115309-ac50b-cc4526f26b7de8ef1e41c338ea653088b0ee2471.gz
This commit is contained in:
parent
8093435b7e
commit
632ff36fe3
2
event.c
2
event.c
@ -423,6 +423,8 @@ void event_fire( event_t *event, array_list_t *arguments )
|
||||
}
|
||||
is_event = is_event_old;
|
||||
|
||||
if( !is_event )
|
||||
job_do_notification();
|
||||
}
|
||||
|
||||
|
||||
|
4
parser.c
4
parser.c
@ -1824,9 +1824,7 @@ static void eval_job( tokenizer *tok )
|
||||
}
|
||||
}
|
||||
|
||||
if(( is_subshell || is_block || !is_interactive) && (!is_event))
|
||||
job_do_notification();
|
||||
// debug( 2, L"end eval_job()\n" );
|
||||
// debug( 2, L"end eval_job()\n" );
|
||||
}
|
||||
|
||||
int eval( const wchar_t *cmd, io_data_t *io, int block_type )
|
||||
|
2
reader.c
2
reader.c
@ -623,6 +623,7 @@ void reader_write_title()
|
||||
if( exec_subshell( title, &l ) != -1 )
|
||||
{
|
||||
int i;
|
||||
job_do_notification();
|
||||
writestr( L"\e]2;" );
|
||||
for( i=0; i<al_get_count( &l ); i++ )
|
||||
{
|
||||
@ -658,6 +659,7 @@ static void write_prompt()
|
||||
{
|
||||
if( exec_subshell( data->prompt, &prompt_list ) == -1 )
|
||||
{
|
||||
job_do_notification();
|
||||
/* If executing the prompt fails, make sure we at least don't print any junk */
|
||||
al_foreach( &prompt_list, (void (*)(const void *))&free );
|
||||
al_destroy( &prompt_list );
|
||||
|
Loading…
x
Reference in New Issue
Block a user