diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index dadf70c3..bbd7b42d 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -3765,7 +3765,9 @@ MHD_start_daemon_va (unsigned int flags, | |||
3765 | #endif | 3765 | #endif |
3766 | if (0 == (flags & (MHD_USE_SELECT_INTERNALLY | MHD_USE_THREAD_PER_CONNECTION))) | 3766 | if (0 == (flags & (MHD_USE_SELECT_INTERNALLY | MHD_USE_THREAD_PER_CONNECTION))) |
3767 | use_pipe = 0; /* useless if we are using 'external' select */ | 3767 | use_pipe = 0; /* useless if we are using 'external' select */ |
3768 | if ( (use_pipe) && (0 != MHD_pipe_ (daemon->wpipe)) ) | 3768 | if (use_pipe) |
3769 | { | ||
3770 | if (0 != MHD_pipe_ (daemon->wpipe)) | ||
3769 | { | 3771 | { |
3770 | #ifdef HAVE_MESSAGES | 3772 | #ifdef HAVE_MESSAGES |
3771 | MHD_DLOG (daemon, | 3773 | MHD_DLOG (daemon, |
@@ -3775,8 +3777,9 @@ MHD_start_daemon_va (unsigned int flags, | |||
3775 | free (daemon); | 3777 | free (daemon); |
3776 | return NULL; | 3778 | return NULL; |
3777 | } | 3779 | } |
3778 | make_nonblocking (daemon, daemon->wpipe[0]); | 3780 | make_nonblocking (daemon, daemon->wpipe[0]); |
3779 | make_nonblocking (daemon, daemon->wpipe[1]); | 3781 | make_nonblocking (daemon, daemon->wpipe[1]); |
3782 | } | ||
3780 | #ifndef MHD_WINSOCK_SOCKETS | 3783 | #ifndef MHD_WINSOCK_SOCKETS |
3781 | if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) && | 3784 | if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) && |
3782 | (1 == use_pipe) && | 3785 | (1 == use_pipe) && |