summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.c b/src/util.c
index ca769c22e6..344b869c8c 100644
--- a/src/util.c
+++ b/src/util.c
@@ -2947,6 +2947,10 @@ int make_stdio(int fd) {
if (r < 0 || s < 0 || t < 0)
return -errno;
+ fd_cloexec(STDIN_FILENO, false);
+ fd_cloexec(STDOUT_FILENO, false);
+ fd_cloexec(STDERR_FILENO, false);
+
return 0;
}