hush: fix "(sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?"
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 7 Jul 2017 20:56:02 +0000 (22:56 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 7 Jul 2017 20:56:02 +0000 (22:56 +0200)
commit840a4355d035efc360eeefe5da8a11e47b3c80d3
treed68c5ee3d534e241f1585188699ab987c5e01fd2
parent2db74610cdf8ffb4f9ed99b62c755377d3cc48ea
hush: fix "(sleep 1; exit 3) & sleep 2; echo $?; wait $!; echo $?"

function                                             old     new   delta
process_wait_result                                  414     426     +12
builtin_wait                                         283     291      +8
run_list                                             974     978      +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/0 up/down: 24/0)               Total: 24 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
shell/ash_test/ash-misc/wait6.right [new file with mode: 0644]
shell/ash_test/ash-misc/wait6.tests [new file with mode: 0755]
shell/hush.c
shell/hush_test/hush-misc/wait6.right [new file with mode: 0644]
shell/hush_test/hush-misc/wait6.tests [new file with mode: 0755]