diff options
-rw-r--r-- | shell/hush.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/shell/hush.c b/shell/hush.c index 386307720..835159066 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -3398,6 +3398,8 @@ static int checkjobs(struct pipe* fg_pipe) | |||
3398 | #endif | 3398 | #endif |
3399 | return rcode; | 3399 | return rcode; |
3400 | } | 3400 | } |
3401 | if (!fg_pipe->alive_cmds) | ||
3402 | return rcode; | ||
3401 | } | 3403 | } |
3402 | /* There are still running processes in the fg pipe */ | 3404 | /* There are still running processes in the fg pipe */ |
3403 | goto wait_more; /* do waitpid again */ | 3405 | goto wait_more; /* do waitpid again */ |