Merge pull request #2618 from fcicq/solaris-support

Partial solaris support
This commit is contained in:
Jeff Garzik
2013-08-24 20:19:24 -07:00
6 changed files with 25 additions and 8 deletions

View File

@@ -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