summaryrefslogtreecommitdiff
path: root/src/libstddjb
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstddjb')
-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 :
{