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
This commit is contained in:
Art Yerkes 2007-08-27 05:00:03 +00:00
parent 2c932d0e3a
commit 067d30c566

View file

@ -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 ();