gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [libmicrohttpd] 01/02: Fixed MHD_quiesce_daemon() after 7b0


From: gnunet
Subject: [GNUnet-SVN] [libmicrohttpd] 01/02: Fixed MHD_quiesce_daemon() after 7b0d92902c92782844e84e40ab54d58a65531a65
Date: Sun, 26 Mar 2017 21:22:56 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 25d381f4c004feda143e614406a6329864c76073
Author: Evgeny Grin (Karlson2k) <address@hidden>
AuthorDate: Sun Mar 26 22:00:41 2017 +0300

    Fixed MHD_quiesce_daemon() after 7b0d92902c92782844e84e40ab54d58a65531a65
---
 src/microhttpd/daemon.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index bda9292f..b01539bb 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -4643,7 +4643,7 @@ MHD_quiesce_daemon (struct MHD_Daemon *daemon)
   ret = daemon->listen_fd;
   if (MHD_INVALID_SOCKET == ret)
     return MHD_INVALID_SOCKET;
-  if ( (MHD_ITC_IS_INVALID_(daemon->itc)) &&
+  if ( (0 == (daemon->options & (MHD_USE_ITC))) &&
        (0 != (daemon->options & (MHD_USE_INTERNAL_POLLING_THREAD))) )
     {
 #ifdef HAVE_MESSAGES
@@ -5978,6 +5978,8 @@ MHD_start_daemon_va (unsigned int flags,
                   goto thread_failed;
                 }
             }
+          else
+            MHD_itc_set_invalid_ (d->itc);
 
           /* Divide available connections evenly amongst the threads.
            * Thread indexes in [0, leftover_conns) each get one of the

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]