mirror of https://github.com/WerWolv/ImHex.git
sys: Properly trigger debugger in signal handler
This commit is contained in:
parent
16d9571743
commit
a9a2ec7c7b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue