aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
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 7263565047..db368c7f53 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -368,6 +368,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