call crash if the signal handler is unable to handle the signal

Otherwise, the OS will just keep asking us to handle the signal in an
infinite loop.
This commit is contained in:
Joel Dice 2014-03-14 09:50:10 -06:00
parent 70b5ea6838
commit 7cfbdc8fdb

View File

@ -140,6 +140,8 @@ void handleSignal(int signal, siginfo_t*, void* context)
pthread_sigmask(SIG_UNBLOCK, &set, 0);
vmJump(ip, frame, stack, thread, 0, 0);
} else {
crash();
}
} break;