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>
This commit is contained in:
Denys Vlasenko 2009-06-03 14:37:30 +02:00
parent 295fef80bc
commit 6f22624a91

View File

@ -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 */