[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9164 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9164 - gnunet/src/util |
Date: |
Sat, 17 Oct 2009 14:58:41 -0600 |
Author: holindho
Date: 2009-10-17 14:58:41 -0600 (Sat, 17 Oct 2009)
New Revision: 9164
Modified:
gnunet/src/util/network.c
Log:
OS X version of MSG_NOSIGNAL
Modified: gnunet/src/util/network.c
===================================================================
--- gnunet/src/util/network.c 2009-10-17 20:47:30 UTC (rev 9163)
+++ gnunet/src/util/network.c 2009-10-17 20:58:41 UTC (rev 9164)
@@ -333,6 +333,13 @@
{
int ret;
int flags;
+#ifdef OSX
+ int no_sigpipe;
+ no_sigpipe = 1;
+ /* shouldn't matter if this fails as there's a SIGPIPE handler */
+ ret = setsockopt (desc->fd, SOL_SOCKET, SO_NOSIGPIPE,
+ (void *) &no_sigpipe, sizeof (no_sigpipe));
+#endif
flags = 0;
#ifdef MSG_DONTWAIT
@@ -370,6 +377,13 @@
{
int ret;
int flags;
+#ifdef OSX
+ int no_sigpipe;
+ no_sigpipe = 1;
+ /* shouldn't matter if this fails as there's a SIGPIPE handler */
+ ret = setsockopt (desc->fd, SOL_SOCKET, SO_NOSIGPIPE,
+ (void *) &no_sigpipe, sizeof (no_sigpipe));
+#endif
flags = 0;
#ifdef MSG_DONTWAIT
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9164 - gnunet/src/util,
gnunet <=