Linux: Exit on SIGTERM (#1116)

This commit is contained in:
goeiecool9999 2024-03-11 02:13:53 +01:00 committed by GitHub
parent 788da3cdf7
commit ccabd93159
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -155,6 +155,7 @@ void ExceptionHandler_Init()
action.sa_handler = handler_SIGINT;
sigaction(SIGINT, &action, nullptr);
sigaction(SIGTERM, &action, nullptr);
action.sa_flags = SA_SIGINFO;
action.sa_handler = nullptr;