mirror of https://github.com/mirror/busybox.git
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>1_15_stable
parent
295fef80bc
commit
6f22624a91
|
@ -3505,6 +3505,8 @@ static int checkjobs(struct pipe* fg_pipe)
|
||||||
#endif
|
#endif
|
||||||
return rcode;
|
return rcode;
|
||||||
}
|
}
|
||||||
|
if (!fg_pipe->alive_cmds)
|
||||||
|
return rcode;
|
||||||
}
|
}
|
||||||
/* There are still running processes in the fg pipe */
|
/* There are still running processes in the fg pipe */
|
||||||
goto wait_more; /* do waitpid again */
|
goto wait_more; /* do waitpid again */
|
||||||
|
|
Loading…
Reference in New Issue