commit | 7249493949314557a5d22f52315713e5f9013e15 | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Tue Jun 02 23:46:48 2020 +1000 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Wed Jul 08 17:05:35 2020 +1000 |
tree | 38c20b531ce5cf47de35bff90baad79078540a82 | |
parent | 39279293fa358fa8bd681f8ae27bdf11d3a66b53 [diff] |
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>