Update of /cvsroot/stepmania/stepmania/src/arch/ArchHooks
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv9738/src/arch/ArchHooks
Modified Files:
ArchHooks_darwin.cpp
Log Message:
Random code from apple on a mailing list to make sure that apple's crash handler doesn't pop up after we've set up our crash handler.
Index: ArchHooks_darwin.cpp
===================================================================
RCS file: /cvsroot/stepmania/stepmania/src/arch/ArchHooks/ArchHooks_darwin.cpp,v
retrieving revision 1.90
retrieving revision 1.91
diff -u -d -p -r1.90 -r1.91
--- ArchHooks_darwin.cpp 24 Aug 2007 06:15:50 -0000 1.90
+++ ArchHooks_darwin.cpp 4 Oct 2007 06:21:04 -0000 1.91
@@ -66,6 +66,10 @@ void ArchHooks_darwin::Init()
CrashHandler::InitializeCrashHandler();
SignalHandler::OnClose( DoCrashSignalHandler );
SignalHandler::OnClose( DoEmergencyShutdown );
+
+ /* Now that the crash handler is set up, disable crash reporter. */
+ task_set_exception_ports( mach_task_self(), EXC_MASK_ALL, MACH_PORT_NULL, EXCEPTION_DEFAULT, 0 );
+
// CF*Copy* functions' return values need to be released, CF*Get* functions' do not.
CFStringRef key = CFSTR( "ApplicationBundlePath" );
|