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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 5d99fa40..b8bb7b3d 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1591,7 +1591,12 @@ MHD_cleanup_connections (struct MHD_Daemon *daemon)
1591 pos->addr_len); 1591 pos->addr_len);
1592#if EPOLL_SUPPORT 1592#if EPOLL_SUPPORT
1593 if (0 != (pos->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL)) 1593 if (0 != (pos->epoll_state & MHD_EPOLL_STATE_IN_EREADY_EDLL))
1594 MHD_PANIC ("Internal error"); 1594 {
1595 EDLL_remove (daemon->eready_head,
1596 daemon->eready_tail,
1597 pos);
1598 pos->epoll_state &= ~MHD_EPOLL_STATE_IN_EREADY_EDLL;
1599 }
1595 if ( (0 != (daemon->options & MHD_USE_EPOLL_LINUX_ONLY)) && 1600 if ( (0 != (daemon->options & MHD_USE_EPOLL_LINUX_ONLY)) &&
1596 (-1 != daemon->epoll_fd) && 1601 (-1 != daemon->epoll_fd) &&
1597 (0 != (pos->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET)) ) 1602 (0 != (pos->epoll_state & MHD_EPOLL_STATE_IN_EPOLL_SET)) )