reduce SignalHandler dependency on StepMania.cpp
This commit is contained in:
@@ -446,12 +446,6 @@ static void do_backtrace( const void **buf, size_t size )
|
||||
|
||||
void CrashSignalHandler( int signal )
|
||||
{
|
||||
#if !defined(BACKTRACE_METHOD_POWERPC_DARWIN)
|
||||
/* Don't dump a debug file if the user just hit ^C. */
|
||||
if( signal == SIGINT || signal == SIGTERM || signal == SIGHUP )
|
||||
return;
|
||||
#endif
|
||||
|
||||
if( g_pCrashHandlerArgv0 )
|
||||
{
|
||||
safe_print(fileno(stderr), "Crash handler failed: CrashHandlerHandleArgs was not called\n", NULL);
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
#include "RageLog.h"
|
||||
#include "SignalHandler.h"
|
||||
#include "GetSysInfo.h"
|
||||
#include "StepMania.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <sys/mman.h>
|
||||
@@ -49,18 +48,8 @@ SaveSignals::~SaveSignals()
|
||||
|
||||
static void SigHandler(int sig)
|
||||
{
|
||||
if( sig == SIGINT || sig == SIGQUIT )
|
||||
{
|
||||
/* ^C. */
|
||||
ExitGame();
|
||||
return;
|
||||
}
|
||||
|
||||
for(unsigned i = 0; i < handlers.size(); ++i)
|
||||
handlers[i](sig);
|
||||
|
||||
kill( 0, SIGKILL );
|
||||
// _exit(1);
|
||||
}
|
||||
|
||||
/* Hook up events to fatal signals, so we can clean up if we're killed. */
|
||||
|
||||
Reference in New Issue
Block a user