mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Handles should be closed in the context of the dead process, not the system process.
For now, I just used KeAttachProcess() to do this, but this should be moved so it is called by the last thread of the process before it dies. svn path=/trunk/; revision=2004
This commit is contained in:
parent
71f7e0cad5
commit
db9f10747e
1 changed files with 2 additions and 1 deletions
|
@ -209,8 +209,9 @@ PiTerminateProcess(PEPROCESS Process, NTSTATUS ExitStatus)
|
|||
{
|
||||
return(STATUS_SUCCESS);
|
||||
}
|
||||
|
||||
KeAttachProcess( Process );
|
||||
ObCloseAllHandles(Process);
|
||||
KeDetachProcess();
|
||||
KeAcquireDispatcherDatabaseLock(FALSE);
|
||||
Process->Pcb.DispatcherHeader.SignalState = TRUE;
|
||||
KeDispatcherObjectWake(&Process->Pcb.DispatcherHeader);
|
||||
|
|
Loading…
Reference in a new issue