mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
Force unload of running VMs when quitting through signal handler
This commit is contained in:
parent
171f98474f
commit
d4f8c4716d
1 changed files with 2 additions and 0 deletions
|
@ -549,10 +549,12 @@ void Sys_SigHandler( int signal )
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
signalcaught = qtrue;
|
signalcaught = qtrue;
|
||||||
|
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);
|
||||||
#endif
|
#endif
|
||||||
SV_Shutdown(va("Received signal %d", signal) );
|
SV_Shutdown(va("Received signal %d", signal) );
|
||||||
|
VM_Forced_Unload_Done();
|
||||||
}
|
}
|
||||||
|
|
||||||
if( signal == SIGTERM || signal == SIGINT )
|
if( signal == SIGTERM || signal == SIGINT )
|
||||||
|
|
Loading…
Reference in a new issue