Fix bug where in rare cases calling the exit builtin would cause jobs to not execute even though the call to exit was blocked by running jobs

darcs-hash:20061025101402-ac50b-36456915671513f376a90c4455d1c9256f4a9030.gz
This commit is contained in:
axel 2006-10-25 20:14:02 +10:00
parent 32a49e45c8
commit 6d413c8dc3

View file

@ -1908,9 +1908,11 @@ static int read_i()
if( !reader_exit_forced() && !data->prev_end_loop && has_job )
{
writestr(_( L"There are stopped jobs\n" ));
repaint();
data->end_loop = 0;
reader_exit( 0, 0 );
data->prev_end_loop=1;
repaint();
}
}
else