[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17238 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17238 - gnunet/src/util |
Date: |
Thu, 6 Oct 2011 10:47:42 +0200 |
Author: grothoff
Date: 2011-10-06 10:47:42 +0200 (Thu, 06 Oct 2011)
New Revision: 17238
Modified:
gnunet/src/util/network.c
Log:
LRN: Fix select() on pipes to trigger read callback on EPIPE
Modified: gnunet/src/util/network.c
===================================================================
--- gnunet/src/util/network.c 2011-10-06 07:49:00 UTC (rev 17237)
+++ gnunet/src/util/network.c 2011-10-06 08:47:42 UTC (rev 17238)
@@ -1531,7 +1531,12 @@
"Peek at read pipe %d (0x%x) returned %d (%d bytes
available) GLE %u\n",
i, readArray[i]->h, bret, waitstatus, error);
#endif
- if (bret == 0 || waitstatus <= 0)
+ if (bret == 0)
+ {
+ if (error != ERROR_BROKEN_PIPE)
+ continue;
+ }
+ else if (waitstatus <= 0)
continue;
GNUNET_CONTAINER_slist_add (handles_read,
GNUNET_CONTAINER_SLIST_DISPOSITION_TRANSIENT,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17238 - gnunet/src/util,
gnunet <=