mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user