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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index f94e4630..2531c6cc 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -3978,6 +3978,16 @@ MHD_stop_daemon (struct MHD_Daemon *daemon)
3978 (0 != CLOSE (daemon->worker_pool[i].epoll_fd)) ) 3978 (0 != CLOSE (daemon->worker_pool[i].epoll_fd)) )
3979 MHD_PANIC ("close failed\n"); 3979 MHD_PANIC ("close failed\n");
3980#endif 3980#endif
3981 if ( (MHD_USE_SUSPEND_RESUME == (daemon->options & MHD_USE_SUSPEND_RESUME)) )
3982 {
3983 if (-1 != daemon->worker_pool[i].wpipe[1])
3984 {
3985 if (0 != CLOSE (daemon->worker_pool[i].wpipe[0]))
3986 MHD_PANIC ("close failed\n");
3987 if (0 != CLOSE (daemon->worker_pool[i].wpipe[1]))
3988 MHD_PANIC ("close failed\n");
3989 }
3990 }
3981 } 3991 }
3982 free (daemon->worker_pool); 3992 free (daemon->worker_pool);
3983 } 3993 }