diff options
| author | fcicq <[email protected]> | 2013-05-05 13:37:03 +0800 |
|---|---|---|
| committer | fcicq <[email protected]> | 2013-07-17 16:50:51 +0800 |
| commit | b34255b758cdde06b88ba619e6502d6ce6bc3ebb (patch) | |
| tree | ee2b40d9d94bc5c8018e1609141d80b23062f058 /src/init.cpp | |
| parent | Add missing constant for solaris (diff) | |
| download | discoin-b34255b758cdde06b88ba619e6502d6ce6bc3ebb.tar.xz discoin-b34255b758cdde06b88ba619e6502d6ce6bc3ebb.zip | |
Ignore SIGPIPE signal on Solaris
Diffstat (limited to 'src/init.cpp')
| -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 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 |