gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r37092 - branches/mhd-0.9.50/src/microhttpd


From: gnunet
Subject: [GNUnet-SVN] r37092 - branches/mhd-0.9.50/src/microhttpd
Date: Fri, 29 Apr 2016 23:14:21 +0200

Author: Karlson2k
Date: 2016-04-29 23:14:21 +0200 (Fri, 29 Apr 2016)
New Revision: 37092

Modified:
   branches/mhd-0.9.50/src/microhttpd/daemon.c
Log:
Corrected pipes for worker thread for modes without MHD_USE_SUSPEND_RESUME

Modified: branches/mhd-0.9.50/src/microhttpd/daemon.c
===================================================================
--- branches/mhd-0.9.50/src/microhttpd/daemon.c 2016-04-29 21:14:18 UTC (rev 
37091)
+++ branches/mhd-0.9.50/src/microhttpd/daemon.c 2016-04-29 21:14:21 UTC (rev 
37092)
@@ -4277,27 +4277,28 @@
           d->worker_pool_size = 0;
           d->worker_pool = NULL;
 
-          if ( (MHD_USE_SUSPEND_RESUME == (flags & MHD_USE_SUSPEND_RESUME)) &&
-               (0 != MHD_pipe_ (d->wpipe)) )
+          if (MHD_USE_SUSPEND_RESUME == (flags & MHD_USE_SUSPEND_RESUME))
             {
+              if (0 != MHD_pipe_ (d->wpipe))
+                {
 #ifdef HAVE_MESSAGES
-              MHD_DLOG (daemon,
-                        "Failed to create worker control pipe: %s\n",
-                        MHD_pipe_last_strerror_() );
+                  MHD_DLOG (daemon,
+                            "Failed to create worker control pipe: %s\n",
+                            MHD_pipe_last_strerror_() );
 #endif
-              goto thread_failed;
-            }
-          if (MHD_NO == make_nonblocking (d, d->wpipe[0]))
-            {
+                  goto thread_failed;
+                }
+              if (MHD_NO == make_nonblocking (d, d->wpipe[0]))
+                {
 #ifdef HAVE_MESSAGES
-              MHD_DLOG (daemon,
-                        "Failed to make worker control pipe non_blocking: 
%s\n",
-                        MHD_pipe_last_strerror_() );
+                  MHD_DLOG (daemon,
+                            "Failed to make worker control pipe non_blocking: 
%s\n",
+                            MHD_pipe_last_strerror_() );
 #endif
-
-              goto thread_failed;
+                  goto thread_failed;
+                }
+              make_nonblocking (d, d->wpipe[1]);
             }
-          make_nonblocking (d, d->wpipe[1]);
 #ifndef MHD_WINSOCK_SOCKETS
           if ( (0 == (flags & (MHD_USE_POLL | MHD_USE_EPOLL_LINUX_ONLY))) &&
                (MHD_USE_SUSPEND_RESUME == (flags & MHD_USE_SUSPEND_RESUME)) &&




reply via email to

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