diff options
author | Denys Vlasenko | 2009-06-03 14:37:30 +0200 |
---|---|---|
committer | Denys Vlasenko | 2009-06-03 14:37:30 +0200 |
commit | 6f22624a913e29c6a7088718bd3fd6052f917cc1 (patch) | |
tree | 39546a07ff7681edd91c876173c712443adfa3e9 /shell/hush.c | |
parent | 295fef80bcc994bd668f369ad863ad8d12c962b7 (diff) | |
download | busybox-6f22624a913e29c6a7088718bd3fd6052f917cc1.zip busybox-6f22624a913e29c6a7088718bd3fd6052f917cc1.tar.gz |
hush: fix a case when backgrounded cmd makes shell hang
Signed-off-by: Bayram Kurumahmut <kbayram@ubicom.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush.c')
-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 1ad5fcd..de04c01 100644 --- a/shell/hush.c +++ b/shell/hush.c @@ -3505,6 +3505,8 @@ static int checkjobs(struct pipe* fg_pipe) #endif return rcode; } + if (!fg_pipe->alive_cmds) + return rcode; } /* There are still running processes in the fg pipe */ goto wait_more; /* do waitpid again */ |