diff options
Diffstat (limited to 'shell')
-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 1ad5fcd72..de04c015a 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -3505,6 +3505,8 @@ static int checkjobs(struct pipe* fg_pipe) | |||
3505 | #endif | 3505 | #endif |
3506 | return rcode; | 3506 | return rcode; |
3507 | } | 3507 | } |
3508 | if (!fg_pipe->alive_cmds) | ||
3509 | return rcode; | ||
3508 | } | 3510 | } |
3509 | /* There are still running processes in the fg pipe */ | 3511 | /* There are still running processes in the fg pipe */ |
3510 | goto wait_more; /* do waitpid again */ | 3512 | goto wait_more; /* do waitpid again */ |