Crash log: Suppress messages from internal faults
This commit is contained in:
@@ -486,6 +486,8 @@ static const int _signals_to_handle[] = { SIGSEGV, SIGABRT, SIGFPE, SIGBUS, SIGI
|
||||
*/
|
||||
void CDECL HandleCrash(int signum, siginfo_t *si, void *context)
|
||||
{
|
||||
CrashLog::RegisterCrashed();
|
||||
|
||||
/* Disable all handling of signals by us, so we don't go into infinite loops. */
|
||||
for (const int *i = _signals_to_handle; i != endof(_signals_to_handle); i++) {
|
||||
signal(*i, SIG_DFL);
|
||||
|
@@ -762,6 +762,8 @@ thread_local void *_safe_esp = nullptr;
|
||||
|
||||
static LONG WINAPI ExceptionHandler(EXCEPTION_POINTERS *ep)
|
||||
{
|
||||
CrashLog::RegisterCrashed();
|
||||
|
||||
/* Restore system timer resolution. */
|
||||
timeEndPeriod(1);
|
||||
|
||||
|
Reference in New Issue
Block a user