diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2020-11-24 08:09:45 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-09-30 17:34:03 -0400 |
commit | cc2fcd3ece8453ebcf1b302b02e7863ddf1ca88d (patch) | |
tree | 4df77abae46436797a15712d65cd2120da30d400 /src/fdlog_maint.c | |
parent | 5cab11b7ea82080d311b88f9bf49e78b3033f365 (diff) | |
download | lighttpd-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.c | 4 |
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) { |