]> git.ozlabs.org Git - ccan/commit
pipecmd: don't close stderr/stdout/stdin in parent when &pipecmd_preserve
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Feb 2019 03:56:58 +0000 (14:26 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Feb 2019 03:56:58 +0000 (14:26 +1030)
commit8cc0749a0e067582f1100e6ee1cd975af52e372a
treebdb7d1334e5109c00b44ec967df221943adccabc
parente16fc94bd8f80800d5203d9182cb3c5224528b0a
pipecmd: don't close stderr/stdout/stdin in parent when &pipecmd_preserve

This was reported and fixed by @m-schmoock for stderr, but I decided to
rework to make it clearer and cover the other cases:

https://github.com/ElementsProject/lightning/pull/2321/commits/67dad01549f876e5e620eeffe2f1e78c35bd0f03

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/pipecmd/pipecmd.c