diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-09-11 20:41:19 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-09-11 20:41:19 +0000 |
commit | beb9f82f12972b4f4b8830701c4d7ba02ddfbceb (patch) | |
tree | 91159838ed45b0b36472a6ebd7460d9dc20c6e1a /src/libstddjb/cspawn.c | |
parent | 170480a068841398b5538ae0598fbfda0e7789b5 (diff) | |
download | skalibs-beb9f82f12972b4f4b8830701c4d7ba02ddfbceb.tar.xz |
Don't forget to uncoe
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/libstddjb/cspawn.c')
-rw-r--r-- | src/libstddjb/cspawn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstddjb/cspawn.c b/src/libstddjb/cspawn.c index 2baad0e..8e2298e 100644 --- a/src/libstddjb/cspawn.c +++ b/src/libstddjb/cspawn.c @@ -30,6 +30,7 @@ static inline void cspawn_child_exec (char const *prog, char const *const *argv, break ; case CSPAWN_FA_MOVE : if (fd_move(fa[i].x.fd2[0], fa[i].x.fd2[1]) == -1) return ; + if (fa[i].x.fd2[0] == fa[i].x.fd2[1] && uncoe(fa[i].x.fd2[0]) == -1) return ; break ; case CSPAWN_FA_OPEN : { |