projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71f7e0c
)
Handles should be closed in the context of the dead process, not the system process.
author
Phillip Susi
<phreak@iag.net>
Sat, 23 Jun 2001 19:15:14 +0000
(19:15 +0000)
committer
Phillip Susi
<phreak@iag.net>
Sat, 23 Jun 2001 19:15:14 +0000
(19:15 +0000)
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
reactos/ntoskrnl/ps/kill.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/ps/kill.c
b/reactos/ntoskrnl/ps/kill.c
index
06059f1
..
a1149ce
100644
(file)
--- a/
reactos/ntoskrnl/ps/kill.c
+++ b/
reactos/ntoskrnl/ps/kill.c
@@
-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);