reenable sighandlers for winderp

This commit is contained in:
mniip
2013-05-19 10:02:42 +04:00
parent 3a640fee3f
commit 3979395e65

View File

@@ -16,8 +16,8 @@
#include "graphics/Graphics.h" #include "graphics/Graphics.h"
#if defined(LIN) #if defined(LIN)
#include "icon.h" #include "icon.h"
#include <signal.h>
#endif #endif
#include <signal.h>
#ifndef WIN #ifndef WIN
#include <unistd.h> #include <unistd.h>
@@ -667,7 +667,6 @@ void BlueScreen(char * detailMessage){
} }
} }
#ifndef WIN
void SigHandler(int signal) void SigHandler(int signal)
{ {
switch(signal){ switch(signal){
@@ -685,7 +684,6 @@ void SigHandler(int signal)
break; break;
} }
} }
#endif
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
@@ -783,13 +781,11 @@ int main(int argc, char * argv[])
engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true)); engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true));
#ifndef DEBUG #ifndef DEBUG
#ifndef WIN
//Get ready to catch any dodgy errors //Get ready to catch any dodgy errors
signal(SIGSEGV, SigHandler); signal(SIGSEGV, SigHandler);
signal(SIGFPE, SigHandler); signal(SIGFPE, SigHandler);
signal(SIGILL, SigHandler); signal(SIGILL, SigHandler);
signal(SIGABRT, SigHandler); signal(SIGABRT, SigHandler);
#endif
#endif #endif
GameController * gameController = NULL; GameController * gameController = NULL;