summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThilo Schulz <arny@ats.s.bawue.de>2011-10-14 13:52:28 +0000
committerTim Angus <tim@ngus.net>2013-01-10 23:38:30 +0000
commit438f5ea9c48452816b3874fc90561c54414b6dfc (patch)
treebff124ee8296eeed747fc6a232b13a1ebbe18802 /src
parentcb0bbbbcfb44eabffac1668b607bfb690a05f2db (diff)
Force unload of running VMs when quitting through signal handler
Diffstat (limited to 'src')
-rw-r--r--src/sys/sys_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c
index abf05e6e..0773b483 100644
--- a/src/sys/sys_main.c
+++ b/src/sys/sys_main.c
@@ -550,10 +550,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 )