DoEmergencyShutdown

This commit is contained in:
Glenn Maynard
2004-06-16 03:32:46 +00:00
parent 78411846e0
commit 92e389f019
@@ -1,6 +1,8 @@
#include "global.h" #include "global.h"
#include "RageUtil.h" #include "RageUtil.h"
#include "StepMania.h" #include "StepMania.h"
#include "archutils/Unix/EmergencyShutdown.h"
#include <unistd.h>
#include <assert.h> #include <assert.h>
/* We can define this symbol to catch failed assert() calls. This is only used /* We can define this symbol to catch failed assert() calls. This is only used
@@ -19,8 +21,9 @@ extern "C" void __assert_fail( const char *assertion, const char *file, unsigned
* through C code sometimes explodes. */ * through C code sometimes explodes. */
HandleException( error ); HandleException( error );
/* XXX: do EmergencyShutdown */ DoEmergencyShutdown();
exit(0);
_exit(0);
#endif #endif
} }
@@ -35,8 +38,9 @@ extern "C" void __assert_perror_fail( int errnum, const char *file, unsigned int
#else #else
HandleException( error ); HandleException( error );
/* XXX: do EmergencyShutdown */ DoEmergencyShutdown();
exit(0);
_exit(0);
#endif #endif
} }