[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5200 - GNUnet/src/util/network
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5200 - GNUnet/src/util/network |
Date: |
Sun, 1 Jul 2007 05:25:10 -0600 (MDT) |
Author: grothoff
Date: 2007-07-01 05:25:10 -0600 (Sun, 01 Jul 2007)
New Revision: 5200
Modified:
GNUnet/src/util/network/io.c
Log:
OS X patch from Heikki
Modified: GNUnet/src/util/network/io.c
===================================================================
--- GNUnet/src/util/network/io.c 2007-07-01 10:36:32 UTC (rev 5199)
+++ GNUnet/src/util/network/io.c 2007-07-01 11:25:10 UTC (rev 5200)
@@ -115,6 +115,9 @@
GE_ASSERT(NULL, s != NULL);
if ( (0 != SHUTDOWN(s->handle,
SHUT_RDWR)) &&
+#ifdef OSX
+ (errno != EINVAL) && /* OS X returns EINVAL instead of ENOTCONN */
+#endif
(errno != ENOTCONN) )
GE_LOG_STRERROR(s->ectx,
GE_WARNING | GE_ADMIN | GE_BULK,
@@ -132,7 +135,10 @@
if (s->handle != -1) {
if ( (0 != SHUTDOWN(s->handle,
SHUT_RDWR)) &&
- (errno != ENOTCONN) )
+#ifdef OSX
+ (errno != EINVAL) && /* OS X returns EINVAL instead of ENOTCONN */
+#endif
+ (errno != ENOTCONN) )
GE_LOG_STRERROR(s->ectx,
GE_WARNING | GE_ADMIN | GE_BULK,
"shutdown");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5200 - GNUnet/src/util/network,
gnunet <=