diff options
author | Denys Vlasenko | 2020-09-29 20:35:55 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-01-01 14:30:58 +0100 |
commit | e7629ffbf5c697a0fa805e2439c278e019d84835 (patch) | |
tree | ce0165773d1c957643b9c4968a180a3cafc998d0 /e2fsprogs | |
parent | e4c7cf3f8cc67bd2b9aeb4d622c38bad515b09a0 (diff) | |
download | busybox-e7629ffbf5c697a0fa805e2439c278e019d84835.zip busybox-e7629ffbf5c697a0fa805e2439c278e019d84835.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 'e2fsprogs')
0 files changed, 0 insertions, 0 deletions