From beb9f82f12972b4f4b8830701c4d7ba02ddfbceb Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 11 Sep 2023 20:41:19 +0000 Subject: Don't forget to uncoe Signed-off-by: Laurent Bercot --- src/libstddjb/cspawn.c | 1 + 1 file changed, 1 insertion(+) 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 : { -- cgit v1.2.3