checkasm: Catch SIGBUS in addition to the other signals

This commit is contained in:
Martin Storsjö
2019-08-07 22:19:14 +03:00
parent 9a9c0c7e78
commit 2ef970a885
+1
View File
@@ -703,6 +703,7 @@ void checkasm_set_signal_handler_state(const int enabled) {
RemoveVectoredExceptionHandler(signal_handler);
#else
void (*const handler)(int) = enabled ? signal_handler : SIG_DFL;
signal(SIGBUS, handler);
signal(SIGFPE, handler);
signal(SIGILL, handler);
signal(SIGSEGV, handler);