aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/daemon.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-01 16:31:03 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-01 16:31:03 +0100
commit3fc686e335437ec5f6d6270c8d713e9a01da966f (patch)
treeb9bdb1fb970a6187e17c9723062213cdc789c02a /src/microhttpd/daemon.c
parent777d5e048d02a46c535f6e53fa31cda5c5d09038 (diff)
downloadlibmicrohttpd-3fc686e335437ec5f6d6270c8d713e9a01da966f.tar.gz
libmicrohttpd-3fc686e335437ec5f6d6270c8d713e9a01da966f.zip
initialize epoll_fd even if we have no listen fd, patch by Jose Bollo
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r--src/microhttpd/daemon.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index cd2ca189..2b7bb66d 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1,6 +1,6 @@
1/* 1/*
2 This file is part of libmicrohttpd 2 This file is part of libmicrohttpd
3 Copyright (C) 2007-2017 Daniel Pittman and Christian Grothoff 3 Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public 6 modify it under the terms of the GNU Lesser General Public
@@ -5990,8 +5990,7 @@ MHD_start_daemon_va (unsigned int flags,
5990 5990
5991#ifdef EPOLL_SUPPORT 5991#ifdef EPOLL_SUPPORT
5992 if ( (0 != (*pflags & MHD_USE_EPOLL)) && 5992 if ( (0 != (*pflags & MHD_USE_EPOLL)) &&
5993 (0 == daemon->worker_pool_size) && 5993 (0 == daemon->worker_pool_size) )
5994 (0 == (*pflags & MHD_USE_NO_LISTEN_SOCKET)) )
5995 { 5994 {
5996 if (0 != (*pflags & MHD_USE_THREAD_PER_CONNECTION)) 5995 if (0 != (*pflags & MHD_USE_THREAD_PER_CONNECTION))
5997 { 5996 {