commit | 0b923162429afa275df4aabc7aab2509ad0992a6 | [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 16:58:29 2020 +1000 |
tree | 7e0a44818b3ed15a7ef5da98cbf384ba8292a182 | |
parent | dc44524ebfcb69e4a21a8b6ae8c39dee35250185 [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>