summaryrefslogtreecommitdiff
path: root/src/fdlog_maint.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2020-11-24 08:09:45 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-09-30 17:34:03 -0400
commitcc2fcd3ece8453ebcf1b302b02e7863ddf1ca88d (patch)
tree4df77abae46436797a15712d65cd2120da30d400 /src/fdlog_maint.c
parent5cab11b7ea82080d311b88f9bf49e78b3033f365 (diff)
downloadlighttpd-git-cc2fcd3ece8453ebcf1b302b02e7863ddf1ca88d.tar.gz
[multiple] _WIN32 fdevent_pipe_cloexec()
Note: Under _WIN32, serious limitation in Windows APIs: select() and WSAPoll() operate only on sockets (not pipes) (directly affects mod_cgi; not currently handled)
Diffstat (limited to 'src/fdlog_maint.c')
-rw-r--r--src/fdlog_maint.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fdlog_maint.c b/src/fdlog_maint.c
index 470e5e11..9f5b9832 100644
--- a/src/fdlog_maint.c
+++ b/src/fdlog_maint.c
@@ -190,10 +190,8 @@ fdlog_pipe_open (const char * const fn)
}
int fds[2];
- if (pipe(fds))
+ if (fdevent_pipe_cloexec(fds, 65536))
return NULL;
- fdevent_setfd_cloexec(fds[0]);
- fdevent_setfd_cloexec(fds[1]);
pid_t pid = fdlog_pipe_spawn(fn, fds[0]);
if (pid > 0) {