From 067d30c566d22b65f2647bb88c7062d0f6e43eb8 Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Mon, 27 Aug 2007 05:00:03 +0000 Subject: [PATCH] Slight improvement: When terminating the process, kill sibling threads first. We'll need this for synchronization at process termination among other things. Thanks alex for pointing out that we didn't do this. svn path=/trunk/; revision=28589 --- reactos/dll/win32/kernel32/process/proc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/reactos/dll/win32/kernel32/process/proc.c b/reactos/dll/win32/kernel32/process/proc.c index bbfa5998f41..f98f15c0c3e 100644 --- a/reactos/dll/win32/kernel32/process/proc.c +++ b/reactos/dll/win32/kernel32/process/proc.c @@ -567,6 +567,9 @@ ExitProcess(UINT uExitCode) ULONG Request; NTSTATUS Status; + /* kill sibling threads ... we want to be alone at this point */ + NtTerminateProcess (NULL, 0); + /* unload all dll's */ LdrShutdownProcess ();