Make sure all foreground jobs are reaped after evaluating a job to avoid things like 'sleep 10m; fg' don't try to restart sleep

darcs-hash:20060116001912-ac50b-30944d879d48b8b2714b24fa9a1e7f906ed3e1fb.gz
This commit is contained in:
axel 2006-01-16 10:19:12 +10:00
parent 18bbb5ad01
commit 5db192347c

2
proc.c
View file

@ -541,7 +541,7 @@ int job_reap( int interactive )
process_t *p;
jnext = j->next;
if( (!j->skip_notification) && (!interactive) )
if( (!j->skip_notification) && (!interactive) && (!j->fg))
{
continue;
}