commit beb9f82f12972b4f4b8830701c4d7ba02ddfbceb
parent 170480a068841398b5538ae0598fbfda0e7789b5
Author: Laurent Bercot <ska-skaware@skarnet.org>
Date: Mon, 11 Sep 2023 20:41:19 +0000
Don't forget to uncoe
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git 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 :
{