gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r17399 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r17399 - libmicrohttpd/src/daemon
Date: Wed, 12 Oct 2011 10:42:49 +0200

Author: grothoff
Date: 2011-10-12 10:42:49 +0200 (Wed, 12 Oct 2011)
New Revision: 17399

Modified:
   libmicrohttpd/src/daemon/daemon.c
Log:
fixing #1824

Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c   2011-10-12 08:41:49 UTC (rev 17398)
+++ libmicrohttpd/src/daemon/daemon.c   2011-10-12 08:42:49 UTC (rev 17399)
@@ -948,16 +948,15 @@
 #if LINUX
   {
     /* non-blocking sockets perform better on Linux */
-    int flags = fcntl (fd, F_GETFL);
+    int flags = fcntl (connection->socket_fd, F_GETFL);
     if ( (flags == -1) ||
-        (0 != fcntl (fd, F_SETFL, flags | O_NONBLOCK)) )
+        (0 != fcntl (connection->socket_fd, F_SETFL, flags | O_NONBLOCK)) )
       {
 #if HAVE_MESSAGES
        FPRINTF(stderr, "Failed to make socket non-blocking: %s\n", 
                STRERROR (errno));
 #endif
       }
-#endif    
   }
 #endif
 




reply via email to

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