From d4f8c4716d592e99d28a62e2cf4e721f4e808fc7 Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Fri, 14 Oct 2011 13:52:28 +0000 Subject: [PATCH] Force unload of running VMs when quitting through signal handler --- code/sys/sys_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/sys/sys_main.c b/code/sys/sys_main.c index 1ff55e4d..ed00b65d 100644 --- a/code/sys/sys_main.c +++ b/code/sys/sys_main.c @@ -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 )