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) {
|
auto signalHandler = [](int signalNumber) {
|
||||||
EventManager::post<EventAbnormalTermination>(signalNumber);
|
EventManager::post<EventAbnormalTermination>(signalNumber);
|
||||||
|
|
||||||
std::signal(signalNumber, SIG_DFL);
|
std::raise(SIGABRT);
|
||||||
std::raise(signalNumber);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
std::signal(SIGTERM, signalHandler);
|
std::signal(SIGTERM, signalHandler);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user