diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index e9a978aa..b6885178 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -4289,6 +4289,17 @@ MHD_start_daemon_va (unsigned int flags, | |||
4289 | #endif | 4289 | #endif |
4290 | goto thread_failed; | 4290 | goto thread_failed; |
4291 | } | 4291 | } |
4292 | if (MHD_NO == make_nonblocking (d, d->wpipe[0])) | ||
4293 | { | ||
4294 | #ifdef HAVE_MESSAGES | ||
4295 | MHD_DLOG (daemon, | ||
4296 | "Failed to make worker control pipe non_blocking: %s\n", | ||
4297 | MHD_pipe_last_strerror_() ); | ||
4298 | #endif | ||
4299 | |||
4300 | goto thread_failed; | ||
4301 | } | ||
4302 | make_nonblocking (d, d->wpipe[1]); | ||
4292 | #ifndef MHD_WINSOCK_SOCKETS | 4303 | #ifndef MHD_WINSOCK_SOCKETS |
4293 | if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) && | 4304 | if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) && |
4294 | (MHD_USE_SUSPEND_RESUME == (flags & MHD_USE_SUSPEND_RESUME)) && | 4305 | (MHD_USE_SUSPEND_RESUME == (flags & MHD_USE_SUSPEND_RESUME)) && |