gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r12824 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r12824 - gnunet/src/util
Date: Fri, 3 Sep 2010 18:48:31 +0200

Author: nevans
Date: 2010-09-03 18:48:31 +0200 (Fri, 03 Sep 2010)
New Revision: 12824

Modified:
   gnunet/src/util/network.c
Log:
strange off by one fdset count

Modified: gnunet/src/util/network.c
===================================================================
--- gnunet/src/util/network.c   2010-09-03 16:28:21 UTC (rev 12823)
+++ gnunet/src/util/network.c   2010-09-03 16:48:31 UTC (rev 12824)
@@ -56,7 +56,7 @@
 {
 
   /**
-   * Maximum number of any socket socket descriptor in the set
+   * Maximum number of any socket socket descriptor in the set (plus one)
    */
   int nsds;
 
@@ -1007,7 +1007,7 @@
       GNUNET_break (0);
     }
 #ifndef MINGW
-  return select (nfds + 1,
+  return select (nfds,
                  (rfds != NULL) ? &rfds->sds : NULL,
                  (wfds != NULL) ? &wfds->sds : NULL,
                  (efds != NULL) ? &efds->sds : NULL,




reply via email to

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