summaryrefslogtreecommitdiff
path: root/rcS.c
diff options
context:
space:
mode:
Diffstat (limited to 'rcS.c')
-rw-r--r--rcS.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/rcS.c b/rcS.c
index 4ecf0c1..b1202bf 100644
--- a/rcS.c
+++ b/rcS.c
@@ -82,6 +82,7 @@ static void q_initd_run(struct runqueue *q, struct runqueue_task *t)
if (pid) {
close(pipefd[1]);
+ fcntl(pipefd[0], F_SETFD, FD_CLOEXEC);
s->fd.stream.string_data = true,
s->fd.stream.notify_read = pipe_cb,
runqueue_process_add(q, &s->proc, pid);