Set zm_terminate on crash so that other threads exit instead of continuing

This commit is contained in:
Isaac Connor 2021-11-03 17:04:13 -04:00
parent 0119ff46aa
commit 364ae03195
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ RETSIGTYPE zm_die_handler(int signal, siginfo_t * info, void *context)
RETSIGTYPE zm_die_handler(int signal)
#endif
{
zm_terminate = true;
Error("Got signal %d (%s), crashing", signal, strsignal(signal));
#if (defined(__i386__) || defined(__x86_64__))
// Get more information if available