From: Denys Vlasenko Date: Wed, 3 Jun 2009 12:37:30 +0000 (+0200) Subject: hush: fix a case when backgrounded cmd makes shell hang X-Git-Tag: 1_15_0~193 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6f22624a913e29c6a7088718bd3fd6052f917cc1;p=oweals%2Fbusybox.git hush: fix a case when backgrounded cmd makes shell hang Signed-off-by: Bayram Kurumahmut Signed-off-by: Denys Vlasenko --- 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) #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 */