0
0
Fork 0
mirror of https://github.com/dhewm/dhewm3.git synced 2025-03-22 18:51:05 +00:00

Force exit on double segfault

All bets are off in this scenario, don't deinit anything.
This commit is contained in:
dhewg 2011-12-03 14:40:29 +01:00
parent 795b77a896
commit 5c9973773b

View file

@ -29,6 +29,7 @@ If you have questions concerning this license or the applicable additional terms
#include "posix_public.h"
#include <string.h>
#include <unistd.h>
#include <errno.h>
const int siglist[] = {
@ -97,7 +98,7 @@ static void sig_handler( int signum, siginfo_t *info, void *context ) {
if ( double_fault ) {
Sys_Printf( "double fault %s, bailing out\n", strsignal( signum ) );
Posix_Exit( signum );
_exit( signum );
}
double_fault = true;