Crash log: Suppress messages from internal faults

This commit is contained in:
Jonathan G Rennison
2023-06-12 21:26:43 +01:00
parent ad995cbebc
commit 8c507d6611
5 changed files with 19 additions and 4 deletions

View File

@@ -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);

View File

@@ -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);