mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-28 11:39:42 +00:00
Make sure function handling crash does not return
This commit is contained in:
parent
fffc6101b7
commit
2ef286b27a
1 changed files with 2 additions and 2 deletions
|
@ -305,7 +305,7 @@ static void crash_catcher(int signum, siginfo_t* siginfo, void* /*context*/)
|
|||
}
|
||||
}
|
||||
|
||||
static void crash_handler(const char* logfile)
|
||||
[[noreturn]] static void handleCrash(const char* logfile)
|
||||
{
|
||||
if (fread(&crash_info, sizeof(crash_info), 1, stdin) != 1)
|
||||
{
|
||||
|
@ -504,7 +504,7 @@ void crashCatcherInstall(int argc, char** argv, const std::filesystem::path& cra
|
|||
#if (defined(__APPLE__) || (defined(__linux) && !defined(ANDROID)) || (defined(__unix) && !defined(ANDROID)) \
|
||||
|| defined(__posix))
|
||||
if (argc == 2 && strcmp(argv[1], crash_switch) == 0)
|
||||
crash_handler(Files::pathToUnicodeString(crashLogPath).c_str());
|
||||
handleCrash(Files::pathToUnicodeString(crashLogPath).c_str());
|
||||
|
||||
if (is_debugger_present())
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue