From 34bea65b442aeef34432f99273021af1746363b3 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Wed, 16 Jul 2003 15:43:44 +0000 Subject: [PATCH] Remove signal handler. Let the exception handler handle it all. --- .../src/arch/ArchHooks/ArchHooks_darwin.cpp | 26 ------------------- 1 file changed, 26 deletions(-) diff --git a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp index 0bcfc39b54..8dcb5ea887 100644 --- a/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp +++ b/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp @@ -20,7 +20,6 @@ enum { kMacOSX_10_3 = 0x1030 }; -void HandleSignal(int sig); OSStatus HandleException(ExceptionInformation *theException); const unsigned maxLogMessages = 10; /* Follow the windows example */ @@ -43,7 +42,6 @@ ArchHooks_darwin::ArchHooks_darwin() { MessageBoxOK(error, ""); exit(0); } - SignalHandler::OnClose(HandleSignal); InstallExceptionHandler(HandleException); } @@ -297,29 +295,6 @@ ArchHooks::MessageBoxResult ArchHooks_darwin::MessageBoxAbortRetryIgnore(CString return result; } -void HandleSignal(int sig) { - FILE *fp = fopen("crashinfo.txt", "w"); - - /* ***FIXME*** we need to track build number somehow */ - fprintf(fp, - "StepMania crash report -- build unknown\n" - "---------------------------------------\n\n" - "Crash reason: Signal %d\n\n" - "All stack trace information in ~/Library/Logs/CrashReporter/stepmania.crash.log\n\n" - "Static log:\n", sig); - unsigned size = staticLog.size(); - for (unsigned i=0; i