mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-30 15:15:31 +00:00
Merge remote-tracking branch 'scrawl/crashcatcher'
This commit is contained in:
commit
6df626ad71
1 changed files with 6 additions and 0 deletions
|
@ -387,11 +387,17 @@ static void crash_handler(const char *logfile)
|
||||||
kill(crash_info.pid, SIGKILL);
|
kill(crash_info.pid, SIGKILL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// delay between killing of the crashed process and showing the message box to
|
||||||
|
// work around occasional X server lock-up. this can only be a bug in X11 since
|
||||||
|
// even faulty applications shouldn't be able to freeze the X server.
|
||||||
|
usleep(100000);
|
||||||
|
|
||||||
if(logfile)
|
if(logfile)
|
||||||
{
|
{
|
||||||
std::string message = "OpenMW has encountered a fatal error.\nCrash log saved to '" + std::string(logfile) + "'.\n Please report this to https://bugs.openmw.org !";
|
std::string message = "OpenMW has encountered a fatal error.\nCrash log saved to '" + std::string(logfile) + "'.\n Please report this to https://bugs.openmw.org !";
|
||||||
SDL_ShowSimpleMessageBox(0, "Fatal Error", message.c_str(), NULL);
|
SDL_ShowSimpleMessageBox(0, "Fatal Error", message.c_str(), NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue