From 5c9973773b1a2f0ab1d88bf1937b8b2c9c245878 Mon Sep 17 00:00:00 2001 From: dhewg Date: Sat, 3 Dec 2011 14:40:29 +0100 Subject: [PATCH] Force exit on double segfault All bets are off in this scenario, don't deinit anything. --- neo/sys/posix/posix_signal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neo/sys/posix/posix_signal.cpp b/neo/sys/posix/posix_signal.cpp index 01ee758b..1dfe05bf 100644 --- a/neo/sys/posix/posix_signal.cpp +++ b/neo/sys/posix/posix_signal.cpp @@ -29,6 +29,7 @@ If you have questions concerning this license or the applicable additional terms #include "posix_public.h" #include +#include #include 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;