mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Call Sys_PrintBackTrace() directly from Sys_SigHandler()
This commit is contained in:
parent
8f3142e532
commit
c901bcf321
2 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,6 @@ void* Sys_GetCGameAPI(void* parms)
|
||||||
}
|
}
|
||||||
|
|
||||||
void VM_Forced_Unload_Start(void) {
|
void VM_Forced_Unload_Start(void) {
|
||||||
Sys_PrintBackTrace();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void VM_Forced_Unload_Done(void) {
|
void VM_Forced_Unload_Done(void) {
|
||||||
|
|
|
@ -741,6 +741,7 @@ void Sys_SigHandler( int signal )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
signalcaught = qtrue;
|
signalcaught = qtrue;
|
||||||
|
Sys_PrintBackTrace();
|
||||||
VM_Forced_Unload_Start();
|
VM_Forced_Unload_Start();
|
||||||
#ifndef DEDICATED
|
#ifndef DEDICATED
|
||||||
CL_Shutdown(va("Received signal %d", signal), qtrue, qtrue);
|
CL_Shutdown(va("Received signal %d", signal), qtrue, qtrue);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue