diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2020-09-29 20:35:55 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2020-09-29 20:35:55 +0200 |
commit | 91e11eba6e3ee21f70905bca857b9b216fb764f6 (patch) | |
tree | af5ff54c4eae189db990e9fe470f790da4308b99 /shell/ash_test/ash-vars/var_wordsplit_ifs4.tests | |
parent | 8d5f465a206e307bc47d8157b6c90152ddd2ab3c (diff) | |
download | busybox-91e11eba6e3ee21f70905bca857b9b216fb764f6.tar.gz |
ash: jobs: Fix waitcmd busy loop
Upstream commit:
Date: Tue, 2 Jun 2020 23:46:48 +1000
jobs: Fix waitcmd busy loop
We need to clear gotsigchld in waitproc because it is used as
a loop conditional for the waitcmd case. Without it waitcmd
may busy loop after a SIGCHLD.
This patch also changes gotsigchld into a volatile sig_atomic_t
to prevent compilers from optimising its accesses away.
Fixes: 6c691b3e5099 ("jobs: Only clear gotsigchld when waiting...")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This change also incorporates other changes to bring us closer to upstream.
function old new delta
dowait 553 636 +83
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-vars/var_wordsplit_ifs4.tests')
0 files changed, 0 insertions, 0 deletions