Ignore SIGPIPE (which is taken care of by the Socket class).

This commit is contained in:
Gunnar Beutner 2012-04-24 19:55:18 +02:00
parent 09a7cf9a82
commit 0cc15ffc0c
1 changed files with 3 additions and 0 deletions

View File

@ -473,6 +473,9 @@ int icinga::RunApplication(int argc, char **argv, Application *instance)
memset(&sa, 0, sizeof(sa));
sa.sa_handler = ApplicationSigIntHandler;
sigaction(SIGINT, &sa, NULL);
sa.sa_handler = SIG_IGN;
sigaction(SIGPIPE, &sa, NULL);
#endif /* _WIN32 */
vector<string> args;