From 5db192347cd507c074b6b094c97d1847d95befe8 Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 16 Jan 2006 10:19:12 +1000 Subject: [PATCH] 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 --- proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proc.c b/proc.c index 677e36782..1942f7450 100644 --- a/proc.c +++ b/proc.c @@ -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; }