summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Watkins <noahwatkins@gmail.com>2013-07-21 17:07:44 -0700
committerNoah Watkins <noahwatkins@gmail.com>2013-09-17 10:40:56 -0700
commit85b608102220f9ae3d28e889ed3af12a45134783 (patch)
treefe38e69d4105924cbd54063d362d496eba7d502b
parent335607dd1e1530034753ffa797428dc7c734885d (diff)
downloadceph-85b608102220f9ae3d28e889ed3af12a45134783.tar.gz
Pipe: define OSX equivalent of MSG_NOSIGNAL
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
-rw-r--r--src/msg/Pipe.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/msg/Pipe.cc b/src/msg/Pipe.cc
index 50656fee53b..1317bbbe20c 100644
--- a/src/msg/Pipe.cc
+++ b/src/msg/Pipe.cc
@@ -31,6 +31,10 @@
#include "auth/cephx/CephxProtocol.h"
#include "auth/AuthSessionHandler.h"
+#if defined(__APPLE__) && !defined(MSG_NOSIGNAL)
+#define MSG_NOSIGNAL SO_NOSIGPIPE
+#endif
+
// Constant to limit starting sequence number to 2^31. Nothing special about it, just a big number. PLR
#define SEQ_MASK 0x7fffffff
#define dout_subsys ceph_subsys_ms