diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 97fcc813..fda7f51b 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -5696,33 +5696,6 @@ close_all_connections (struct MHD_Daemon *daemon) | |||
5696 | } | 5696 | } |
5697 | 5697 | ||
5698 | 5698 | ||
5699 | #ifdef EPOLL_SUPPORT | ||
5700 | /** | ||
5701 | * Shutdown epoll()-event loop by adding write end of 'itc' to its event set. | ||
5702 | * | ||
5703 | * @param daemon daemon of which the epoll() instance must be signalled | ||
5704 | */ | ||
5705 | static void | ||
5706 | epoll_shutdown (struct MHD_Daemon *daemon) | ||
5707 | { | ||
5708 | struct epoll_event event; | ||
5709 | |||
5710 | if (MHD_ITC_IS_INVALID_(daemon->itc)) | ||
5711 | { | ||
5712 | /* itc was required in this mode, how could this happen? */ | ||
5713 | MHD_PANIC (_("Internal error\n")); | ||
5714 | } | ||
5715 | event.events = EPOLLOUT; | ||
5716 | event.data.ptr = NULL; | ||
5717 | if (0 != epoll_ctl (daemon->epoll_fd, | ||
5718 | EPOLL_CTL_ADD, | ||
5719 | MHD_itc_w_fd_ (daemon->itc), | ||
5720 | &event)) | ||
5721 | MHD_PANIC (_("Failed to add inter-thread communication channel FD to epoll set to signal termination\n")); | ||
5722 | } | ||
5723 | #endif | ||
5724 | |||
5725 | |||
5726 | /** | 5699 | /** |
5727 | * Shutdown an HTTP daemon. | 5700 | * Shutdown an HTTP daemon. |
5728 | * | 5701 | * |