Update for Signal handler api change.
This commit is contained in:
@@ -44,24 +44,25 @@ static bool IsFatalSignal( int signal )
|
||||
}
|
||||
}
|
||||
|
||||
static void DoCleanShutdown( int signal, siginfo_t *si, const ucontext_t *uc )
|
||||
static bool DoCleanShutdown( int signal, siginfo_t *si, const ucontext_t *uc )
|
||||
{
|
||||
if( IsFatalSignal(signal) )
|
||||
return;
|
||||
return false;
|
||||
|
||||
/* ^C. */
|
||||
ArchHooks::SetUserQuit();
|
||||
return true;
|
||||
}
|
||||
|
||||
#if defined(CRASH_HANDLER)
|
||||
static void DoCrashSignalHandler( int signal, siginfo_t *si, const ucontext_t *uc )
|
||||
static bool DoCrashSignalHandler( int signal, siginfo_t *si, const ucontext_t *uc )
|
||||
{
|
||||
/* Don't dump a debug file if the user just hit ^C. */
|
||||
if( !IsFatalSignal(signal) )
|
||||
return;
|
||||
return false;
|
||||
|
||||
CrashHandler::CrashSignalHandler( signal, si, uc );
|
||||
/* not reached */
|
||||
return true; // Unreached
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user