aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 84d9afe3..b78aabb0 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3436,7 +3436,7 @@ MHD_run_from_select (struct MHD_Daemon *daemon,
3436{ 3436{
3437 fd_set es; 3437 fd_set es;
3438 if (0 != (daemon->options & 3438 if (0 != (daemon->options &
3439 (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_POLL)) ) 3439 (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_POLL | MHD_USE_EPOLL)) )
3440 return MHD_NO; 3440 return MHD_NO;
3441 if (NULL == read_fd_set || NULL == write_fd_set) 3441 if (NULL == read_fd_set || NULL == write_fd_set)
3442 return MHD_NO; 3442 return MHD_NO;
@@ -3450,17 +3450,6 @@ MHD_run_from_select (struct MHD_Daemon *daemon,
3450 FD_ZERO (&es); 3450 FD_ZERO (&es);
3451 except_fd_set = &es; 3451 except_fd_set = &es;
3452 } 3452 }
3453 if (0 != (daemon->options & MHD_USE_EPOLL))
3454 {
3455#ifdef EPOLL_SUPPORT
3456 int ret;
3457 ret = MHD_epoll (daemon, MHD_NO);
3458 MHD_cleanup_connections (daemon);
3459 return ret;
3460#else /* ! EPOLL_SUPPORT */
3461 return MHD_NO;
3462#endif /* ! EPOLL_SUPPORT */
3463 }
3464 return internal_run_from_select (daemon, read_fd_set, 3453 return internal_run_from_select (daemon, read_fd_set,
3465 write_fd_set, except_fd_set); 3454 write_fd_set, except_fd_set);
3466} 3455}