[ros-diffs] [arty] 28589: 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.
arty at svn.reactos.org
arty at svn.reactos.org
Mon Aug 27 07:00:03 CEST 2007
Author: arty
Date: Mon Aug 27 09:00:03 2007
New Revision: 28589
URL: http://svn.reactos.org/svn/reactos?rev=28589&view=rev
Log:
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.
Modified:
trunk/reactos/dll/win32/kernel32/process/proc.c
Modified: trunk/reactos/dll/win32/kernel32/process/proc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/process/proc.c?rev=28589&r1=28588&r2=28589&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/process/proc.c (original)
+++ trunk/reactos/dll/win32/kernel32/process/proc.c Mon Aug 27 09:00:03 2007
@@ -567,6 +567,9 @@
ULONG Request;
NTSTATUS Status;
+ /* kill sibling threads ... we want to be alone at this point */
+ NtTerminateProcess (NULL, 0);
+
/* unload all dll's */
LdrShutdownProcess ();
More information about the Ros-diffs
mailing list