mirror of https://github.com/Icinga/icinga2.git
Ignore SIGPIPE (which is taken care of by the Socket class).
This commit is contained in:
parent
09a7cf9a82
commit
0cc15ffc0c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue