Browse Source

Ignore SIGPIPE signal on Solaris

0.10
fcicq 12 years ago
parent
commit
b34255b758
  1. 5
      src/init.cpp

5
src/init.cpp

@ -365,6 +365,11 @@ bool AppInit2(boost::thread_group& threadGroup) @@ -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…
Cancel
Save