summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-11 20:41:19 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-11 20:41:19 +0000
commitbeb9f82f12972b4f4b8830701c4d7ba02ddfbceb (patch)
tree91159838ed45b0b36472a6ebd7460d9dc20c6e1a
parent170480a068841398b5538ae0598fbfda0e7789b5 (diff)
downloadskalibs-beb9f82f12972b4f4b8830701c4d7ba02ddfbceb.tar.xz
Don't forget to uncoe
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r--src/libstddjb/cspawn.c1
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 :
{