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
1 changed files with 2 additions and 0 deletions

View File

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