Remove finsihed jobs after events

darcs-hash:20051009115309-ac50b-cc4526f26b7de8ef1e41c338ea653088b0ee2471.gz
This commit is contained in:
axel 2005-10-09 21:53:09 +10:00
parent 8093435b7e
commit 632ff36fe3
3 changed files with 5 additions and 3 deletions

View file

@ -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();
}

View file

@ -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 )

View file

@ -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 );