X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=rcS.c;h=b1202bf96613d19ee076ee700ad234e6cfcc9db6;hp=4ecf0c10d7da1392c905717c2f15906ea6f5fe6e;hb=fa5ce1c2b4fe3fa6bb4bbc6697961655b952d8d4;hpb=992b796204caf5b0290ea4a1246b43b353b6c1d7 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);