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:
parent
795b77a896
commit
5c9973773b
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue