mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
Merge pull request #9682 from Icinga/9631-213
Setup all signal handlers with SA_RESTART flag
This commit is contained in:
commit
c0bd0936f9
@ -974,6 +974,7 @@ void Application::InstallExceptionHandlers()
|
||||
struct sigaction sa;
|
||||
memset(&sa, 0, sizeof(sa));
|
||||
sa.sa_handler = &Application::SigAbrtHandler;
|
||||
sa.sa_flags = SA_RESTART;
|
||||
sigaction(SIGABRT, &sa, nullptr);
|
||||
#else /* _WIN32 */
|
||||
l_DefaultUnhandledExceptionFilter = SetUnhandledExceptionFilter(&Application::SEHUnhandledExceptionFilter);
|
||||
@ -991,6 +992,7 @@ int Application::Run()
|
||||
struct sigaction sa;
|
||||
memset(&sa, 0, sizeof(sa));
|
||||
sa.sa_handler = &Application::SigUsr1Handler;
|
||||
sa.sa_flags = SA_RESTART;
|
||||
sigaction(SIGUSR1, &sa, nullptr);
|
||||
#else /* _WIN32 */
|
||||
SetConsoleCtrlHandler(&Application::CtrlHandler, TRUE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user