Ignore SIGPIPE signal on Solaris

This commit is contained in:
fcicq 2013-05-05 13:37:03 +08:00
parent 9371403993
commit b34255b758

View file

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