summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTad Marshall <tad@10gen.com>2012-08-06 21:00:02 -0400
committerTad Marshall <tad@10gen.com>2012-08-06 21:00:02 -0400
commitd3c5e9d22cd50dcca6c39d6953f590d18fd5ef7f (patch)
treee8473c69c1efa8d6bb08f96754945fe190abee73
parentd4e7fba488bc86f7f3c98523589fc09d7c88b65f (diff)
downloadmongo-d3c5e9d22cd50dcca6c39d6953f590d18fd5ef7f.tar.gz
Compile when SIGPIPE is not defined
-rw-r--r--src/mongo/s/server.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/s/server.cpp b/src/mongo/s/server.cpp
index 4d2fb61f360..a1d0673ca3c 100644
--- a/src/mongo/s/server.cpp
+++ b/src/mongo/s/server.cpp
@@ -158,7 +158,9 @@ namespace mongo {
#if defined(SIGBUS)
signal( SIGBUS , printStackAndExit );
#endif
+#if defined(SIGPIPE)
signal( SIGPIPE , SIG_IGN );
+#endif
set_new_handler( my_new_handler );
}