From 3fc686e335437ec5f6d6270c8d713e9a01da966f Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 1 Nov 2018 16:31:03 +0100 Subject: initialize epoll_fd even if we have no listen fd, patch by Jose Bollo --- src/microhttpd/daemon.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 @@ /* This file is part of libmicrohttpd - Copyright (C) 2007-2017 Daniel Pittman and Christian Grothoff + Copyright (C) 2007-2018 Daniel Pittman and Christian Grothoff This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -5990,8 +5990,7 @@ MHD_start_daemon_va (unsigned int flags, #ifdef EPOLL_SUPPORT if ( (0 != (*pflags & MHD_USE_EPOLL)) && - (0 == daemon->worker_pool_size) && - (0 == (*pflags & MHD_USE_NO_LISTEN_SOCKET)) ) + (0 == daemon->worker_pool_size) ) { if (0 != (*pflags & MHD_USE_THREAD_PER_CONNECTION)) { -- cgit v1.2.3