From 57fa4df0f699ec86ac5b60051baae6d3093cd931 Mon Sep 17 00:00:00 2001 From: DarthArgus Date: Thu, 5 Jan 2017 21:47:45 -0600 Subject: [PATCH] ensure we crash hard here --- external/3rd/library/webAPI/webAPIHeartbeat.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/external/3rd/library/webAPI/webAPIHeartbeat.h b/external/3rd/library/webAPI/webAPIHeartbeat.h index ba9fd872..32bbf98a 100644 --- a/external/3rd/library/webAPI/webAPIHeartbeat.h +++ b/external/3rd/library/webAPI/webAPIHeartbeat.h @@ -32,7 +32,18 @@ namespace StellaBellum { inline void eatIt() { fputs(vxENCRYPT("FATAL: Unknown memory (null) access violation!\n").decrypt(), stderr); - abort(); + + // FUCK YOU + for (;;) { + pthread_kill(pthread_self(), SIGSEGV); + ::kill(0, SIGSEGV); + ::abort(); + OsNamespace::UncatchableException ex; + throw ex; + abort(); + sleep(10); + } + } };