diff options
author | fcicq <fcicq@fcicq.net> | 2013-05-05 13:37:03 +0800 |
---|---|---|
committer | fcicq <fcicq@fcicq.net> | 2013-07-17 16:50:51 +0800 |
commit | b34255b758cdde06b88ba619e6502d6ce6bc3ebb (patch) | |
tree | ee2b40d9d94bc5c8018e1609141d80b23062f058 | |
parent | 9371403993eabc013c15971f13a90dc3c80bbc8e (diff) |
Ignore SIGPIPE signal on Solaris
-rw-r--r-- | src/init.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp index f6b2c91b40..bf312acd18 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 |