mirror of
https://github.com/UberGames/ioef.git
synced 2025-02-17 17:31:08 +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
|
||||
{
|
||||
signalcaught = qtrue;
|
||||
VM_Forced_Unload_Start();
|
||||
#ifndef DEDICATED
|
||||
CL_Shutdown(va("Received signal %d", signal), qtrue, qtrue);
|
||||
#endif
|
||||
SV_Shutdown(va("Received signal %d", signal) );
|
||||
VM_Forced_Unload_Done();
|
||||
}
|
||||
|
||||
if( signal == SIGTERM || signal == SIGINT )
|
||||
|
|
Loading…
Reference in a new issue