Merge branch 'remove-malloc-in-signal-handler' into 'master'
Remove malloc from I_ReportSignal See merge request KartKrew/Kart!1650
This commit is contained in:
parent
43c3f58f1b
commit
5246659f8c
1 changed files with 11 additions and 1 deletions
|
|
@ -28,7 +28,7 @@
|
|||
#else
|
||||
#include "../config.h.in"
|
||||
#endif
|
||||
|
||||
#include <thread>
|
||||
#include <signal.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
|
|
@ -347,6 +347,16 @@ static void I_ReportSignal(int num, int coredumped)
|
|||
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,
|
||||
"Process killed by signal",
|
||||
sigmsg, NULL);
|
||||
|
||||
I_ShowErrorMessageBox(sigmsg,
|
||||
#if defined (UNIXBACKTRACE)
|
||||
true
|
||||
#elif defined (_WIN32)
|
||||
!M_CheckParm("-noexchndl")
|
||||
#else
|
||||
false
|
||||
#endif
|
||||
);
|
||||
}
|
||||
|
||||
#ifndef NEWSIGNALHANDLER
|
||||
|
|
|
|||
Loading…
Reference in a new issue