eval: Fix pipe fd leakage in evalbackcmd
commitfb0eae45072d0dd2c6c4c781fca15f8b60592a57
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 26 May 2024 10:43:08 +0000 (26 18:43 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 1 Jun 2024 04:44:06 +0000 (1 12:44 +0800)
tree47f837a5078db12e342d0d6eb2b93a756d3b9fde
parentc1d868ac6474d8a1959e632521571e7f9cdcd3c8
eval: Fix pipe fd leakage in evalbackcmd

If makejob or forkshell fails in evalbackcmd, the two pipe file
descriptors will be leaked.  Fix this by adding an EXITRESET
handler that frees them.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
src/eval.c