]> granicus.if.org Git - icinga2/commitdiff
Ignore SIGPIPE (which is taken care of by the Socket class).
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 24 Apr 2012 17:55:18 +0000 (19:55 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 24 Apr 2012 17:55:18 +0000 (19:55 +0200)
base/application.cpp

index 945ee7c0bc9cdbad6399ed56ed07ea6dbcb747b6..aff6e23a9278e60d8f9fb354768250c31d65197b 100644 (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;