From ffbeae78f76f4b6c1ce2d51093473044b9f49522 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 20 Dec 2007 16:43:14 +0100 Subject: [PATCH] server: Don't count system processes as users of a desktop. --- server/process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/process.c b/server/process.c index 26b18631b10..23a4ec0707a 100644 --- a/server/process.c +++ b/server/process.c @@ -601,7 +601,7 @@ static void process_killed( struct process *process ) assert( list_empty( &process->thread_list )); process->end_time = current_time; - close_process_desktop( process ); + if (!process->is_system) close_process_desktop( process ); handles = process->handles; process->handles = NULL; if (handles) release_object( handles ); @@ -1191,6 +1191,7 @@ DECL_HANDLER(make_process_system) if (!process->is_system) { process->is_system = 1; + close_process_desktop( process ); if (!--user_processes) set_event( user_process_event ); } } -- 2.11.4.GIT