From 0cc15ffc0c33676be00acbbaaf7809380f7b129b Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 24 Apr 2012 19:55:18 +0200 Subject: [PATCH] Ignore SIGPIPE (which is taken care of by the Socket class). --- base/application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/application.cpp b/base/application.cpp index 945ee7c0b..aff6e23a9 100644 --- a/base/application.cpp +++ b/base/application.cpp @@ -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 args;