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:
parent
295fef80bc
commit
6f22624a91
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user