aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorfcicq <[email protected]>2013-05-05 13:37:03 +0800
committerfcicq <[email protected]>2013-07-17 16:50:51 +0800
commitb34255b758cdde06b88ba619e6502d6ce6bc3ebb (patch)
treeee2b40d9d94bc5c8018e1609141d80b23062f058 /src/init.cpp
parentAdd missing constant for solaris (diff)
downloaddiscoin-b34255b758cdde06b88ba619e6502d6ce6bc3ebb.tar.xz
discoin-b34255b758cdde06b88ba619e6502d6ce6bc3ebb.zip
Ignore SIGPIPE signal on Solaris
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index f6b2c91b4..bf312acd1 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -365,6 +365,11 @@ bool AppInit2(boost::thread_group& threadGroup)
sigemptyset(&sa_hup.sa_mask);
sa_hup.sa_flags = 0;
sigaction(SIGHUP, &sa_hup, NULL);
+
+#if defined (__SVR4) && defined (__sun)
+ // ignore SIGPIPE on Solaris
+ signal(SIGPIPE, SIG_IGN);
+#endif
#endif
// ********************************************************* Step 2: parameter interactions