diff options
-rw-r--r-- | src/microhttpd/daemon.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index fcbf445a..f93fea2e 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -4290,27 +4290,28 @@ MHD_start_daemon_va (unsigned int flags, | |||
4290 | d->worker_pool_size = 0; | 4290 | d->worker_pool_size = 0; |
4291 | d->worker_pool = NULL; | 4291 | d->worker_pool = NULL; |
4292 | 4292 | ||
4293 | if ( (MHD_USE_SUSPEND_RESUME == (flags & MHD_USE_SUSPEND_RESUME)) && | 4293 | if (MHD_USE_SUSPEND_RESUME == (flags & MHD_USE_SUSPEND_RESUME)) |
4294 | (0 != MHD_pipe_ (d->wpipe)) ) | ||
4295 | { | 4294 | { |
4295 | if (0 != MHD_pipe_ (d->wpipe)) | ||
4296 | { | ||
4296 | #ifdef HAVE_MESSAGES | 4297 | #ifdef HAVE_MESSAGES |
4297 | MHD_DLOG (daemon, | 4298 | MHD_DLOG (daemon, |
4298 | "Failed to create worker control pipe: %s\n", | 4299 | "Failed to create worker control pipe: %s\n", |
4299 | MHD_pipe_last_strerror_() ); | 4300 | MHD_pipe_last_strerror_() ); |
4300 | #endif | 4301 | #endif |
4301 | goto thread_failed; | 4302 | goto thread_failed; |
4302 | } | 4303 | } |
4303 | if (MHD_NO == make_nonblocking (d, d->wpipe[0])) | 4304 | if (MHD_NO == make_nonblocking (d, d->wpipe[0])) |
4304 | { | 4305 | { |
4305 | #ifdef HAVE_MESSAGES | 4306 | #ifdef HAVE_MESSAGES |
4306 | MHD_DLOG (daemon, | 4307 | MHD_DLOG (daemon, |
4307 | "Failed to make worker control pipe non_blocking: %s\n", | 4308 | "Failed to make worker control pipe non_blocking: %s\n", |
4308 | MHD_pipe_last_strerror_() ); | 4309 | MHD_pipe_last_strerror_() ); |
4309 | #endif | 4310 | #endif |
4310 | 4311 | goto thread_failed; | |
4311 | goto thread_failed; | 4312 | } |
4313 | make_nonblocking (d, d->wpipe[1]); | ||
4312 | } | 4314 | } |
4313 | make_nonblocking (d, d->wpipe[1]); | ||
4314 | #ifndef MHD_WINSOCK_SOCKETS | 4315 | #ifndef MHD_WINSOCK_SOCKETS |
4315 | if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) && | 4316 | if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) && |
4316 | (MHD_USE_SUSPEND_RESUME == (flags & MHD_USE_SUSPEND_RESUME)) && | 4317 | (MHD_USE_SUSPEND_RESUME == (flags & MHD_USE_SUSPEND_RESUME)) && |