Force unload of running VMs when quitting through signal handler

This commit is contained in:
Thilo Schulz 2011-10-14 13:52:28 +00:00
parent 171f98474f
commit d4f8c4716d

View file

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