1
0
mirror of synced 2025-01-18 17:14:13 +01:00

sys: Properly trigger debugger in signal handler

This commit is contained in:
WerWolv 2021-08-28 16:28:58 +02:00
parent 16d9571743
commit a9a2ec7c7b

View File

@ -224,8 +224,7 @@ namespace hex {
auto signalHandler = [](int signalNumber) {
EventManager::post<EventAbnormalTermination>(signalNumber);
std::signal(signalNumber, SIG_DFL);
std::raise(signalNumber);
std::raise(SIGABRT);
};
std::signal(SIGTERM, signalHandler);