gnunet-svn
[Top][All Lists]
Advanced

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

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


From: gnunet
Subject: [GNUnet-SVN] r22637 - gnunet/src/util
Date: Fri, 13 Jul 2012 18:24:38 +0200

Author: LRN
Date: 2012-07-13 18:24:38 +0200 (Fri, 13 Jul 2012)
New Revision: 22637

Modified:
   gnunet/src/util/network.c
Log:
Handle peek errors more appropriately in w32 select

Modified: gnunet/src/util/network.c
===================================================================
--- gnunet/src/util/network.c   2012-07-13 16:24:27 UTC (rev 22636)
+++ gnunet/src/util/network.c   2012-07-13 16:24:38 UTC (rev 22637)
@@ -1599,7 +1599,11 @@
              i, readArray[i]->h, bret, waitstatus, error);
         if (bret == 0)
         {
-          if (error != ERROR_BROKEN_PIPE)
+          /* TODO: either add more errors to this condition, or eliminate it
+           * entirely (failed to peek -> pipe is in serious trouble, should
+           * be selected as readable).
+           */
+          if (error != ERROR_BROKEN_PIPE && error != ERROR_INVALID_HANDLE)
             continue;
         }
         else if (waitstatus <= 0)




reply via email to

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