aboutsummaryrefslogtreecommitdiff
path: root/testsuite/echo/echo-prints-non-opts
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-09-29 16:44:46 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2020-09-29 20:21:27 +0200
commit8d5f465a206e307bc47d8157b6c90152ddd2ab3c (patch)
treeaa30fba353f4c4bed356c2772a28d73e8e815be4 /testsuite/echo/echo-prints-non-opts
parent777a6357c09e1e91acfde060144dd019e3baaf3c (diff)
downloadbusybox-8d5f465a206e307bc47d8157b6c90152ddd2ab3c.tar.gz
ash: jobs: Fix infinite loop in waitproc
Upstream commit: Date: Fri, 10 Apr 2020 21:03:09 +1000 jobs: Fix infinite loop in waitproc After we changed the resetting of gotsigchld so that it is only done if jp is NULL, we can now get an infinite loop in waitproc if gotsigchld is set but there is no outstanding child because everything had been waited for previously without gotsigchld being zeroed. This patch fixes it by always zeroing gotsigchld as we did before. The bug that the previous patch was trying to fix is now resolved by switching the blocking mode to DOWAIT_NORMAL after the specified job has been completed so that we really do wait for all outstanding dead children. Reported-by: Harald van Dijk <harald@gigawatt.nl> Fixes: 6c691b3e5099 ("jobs: Only clear gotsigchld when waiting...") Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> function old new delta dowait 553 631 +78 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/echo/echo-prints-non-opts')
0 files changed, 0 insertions, 0 deletions