hush: make "wait %1" less likely to play with signal mask
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 8 Nov 2016 03:59:11 +0000 (04:59 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 8 Nov 2016 03:59:11 +0000 (04:59 +0100)
commit830ea35484cecb8b4cdbe0f30cc5d573ff0e3411
tree9057122598e964984f9bda62a75d7cb746cd602f
parent02affb4afd4a71b0c1ca6286f9b0f6bf3b10e0a1
hush: make "wait %1" less likely to play with signal mask

Was playing with "sleep 3 | exit 3 & wait %1" and noticed that often
SIGCHLD arrives even before I get to signal masking. Can avoid it in this
case.

function                                             old     new   delta
wait_for_child_or_signal                             228     265     +37

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