hush: fix "(sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?"
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 28 Oct 2016 20:39:12 +0000 (22:39 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 28 Oct 2016 20:39:12 +0000 (22:39 +0200)
commit9db74e49e5b462089c6eec0182d819c0d4708e57
tree79195e02400d0b0bd17f409325db01cf79f03dd6
parent7e6753609d102b68a625072fb1660065246a54e2
hush: fix "(sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?"

"wait $!" may be just a bit too late: backgrounded $! is gone.
Do not bomb out in this case.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/hush.c