diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp index dcfbdaa01f..3748c4603a 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp +++ b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp @@ -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