Ignore SIGPIPE signal on Solaris
This commit is contained in:
parent
9371403993
commit
b34255b758
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue