summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/io.c b/io.c
index 3d0e1632ca..450c39e338 100644
--- a/io.c
+++ b/io.c
@@ -2950,11 +2950,7 @@ popen_exec(void *pp)
popen_redirect(p);
for (fd = 3; fd < NOFILE; fd++) {
-#ifdef FD_CLOEXEC
- fcntl(fd, F_SETFL, FD_CLOEXEC);
-#else
close(fd);
-#endif
}
return rb_exec(&p->exec);
}