the code for trapping script crashes breaks things, apparently... TODO: maybe find the new/proper way to do this since it's kinda important, or just fix our scripts and have no need for crashes

This commit is contained in:
DarthArgus
2016-02-10 16:25:02 -06:00
parent 6e893ad8c8
commit a7f2d0ea6a
@@ -1324,17 +1324,6 @@ void JavaLibrary::initializeJavaThread()
}
ms_loaded = 1;
#ifdef linux
if (ConfigServerGame::getTrapScriptCrashes())
{
//set up signal handler for fatals in linux
OurSa.sa_handler = fatalHandler;
sigemptyset(&OurSa.sa_mask);
OurSa.sa_flags = 0;
IGNORE_RETURN(sigaction(SIGSEGV, &OurSa, &JavaSa));
}
#endif
// wait until the main thread tells us to shutdown
ms_shutdownJava->wait();
@@ -1342,13 +1331,6 @@ void JavaLibrary::initializeJavaThread()
IGNORE_RETURN(ms_jvm->DestroyJavaVM());
ms_jvm = NULL;
#ifdef linux
if (ConfigServerGame::getTrapScriptCrashes())
{
// restore the default signal handler
IGNORE_RETURN(sigaction(SIGSEGV, &OrgSa, NULL));
}
#endif
#if defined(_WIN32)
IGNORE_RETURN(FreeLibrary(static_cast<HMODULE>(libHandle)));