mirror of https://github.com/WerWolv/ImHex.git
Fix infinite loop on signal handling. (#338)
* Fix infinite loop on signal handling. Signed-off-by: KokaKiwi <kokakiwi+git@kokakiwi.net> * Re-raise same signal in sighandler
This commit is contained in:
parent
434de44ef5
commit
15f81cc316
|
@ -241,7 +241,9 @@ namespace hex {
|
|||
auto signalHandler = [](int signalNumber) {
|
||||
EventManager::post<EventAbnormalTermination>(signalNumber);
|
||||
|
||||
std::raise(SIGABRT);
|
||||
// Let's not loop on this...
|
||||
std::signal(signalNumber, nullptr);
|
||||
std::raise(signalNumber);
|
||||
};
|
||||
|
||||
std::signal(SIGTERM, signalHandler);
|
||||
|
|
Loading…
Reference in New Issue