Call Sys_PrintBackTrace() directly from Sys_SigHandler()

This commit is contained in:
smallmodel 2023-09-01 22:53:08 +02:00
parent 8f3142e532
commit c901bcf321
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 1 additions and 1 deletions

View file

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

View file

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