Author: fireball
Date: Sat Jan 26 19:50:31 2008
New Revision: 32016
URL:
http://svn.reactos.org/svn/reactos?rev=32016&view=rev
Log:
- Revert 32007 by Alex's request. Explanations in the ros-dev mailing list.
Modified:
trunk/reactos/ntoskrnl/dbgk/dbgkobj.c
Modified: trunk/reactos/ntoskrnl/dbgk/dbgkobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/dbgk/dbgkobj.c?re…
==============================================================================
--- trunk/reactos/ntoskrnl/dbgk/dbgkobj.c (original)
+++ trunk/reactos/ntoskrnl/dbgk/dbgkobj.c Sat Jan 26 19:50:31 2008
@@ -1065,17 +1065,6 @@
VOID
NTAPI
-DbgkpDelayedTerminateProcess(PVOID Arg)
-{
- PWORK_QUEUE_ITEM WorkItem = (PWORK_QUEUE_ITEM)Arg;
- PEPROCESS OwnerProcess = *((PEPROCESS *)&WorkItem[1]);
- ExFreePool(WorkItem);
- /* Terminate the process */
- PsTerminateProcess(OwnerProcess, STATUS_DEBUGGER_INACTIVE);
-}
-
-VOID
-NTAPI
DbgkpCloseObject(IN PEPROCESS OwnerProcess OPTIONAL,
IN PVOID ObjectBody,
IN ACCESS_MASK GrantedAccess,
@@ -1140,16 +1129,8 @@
/* Check if we terminate on exit */
if (DebugObject->KillProcessOnExit)
{
- PWORK_QUEUE_ITEM WorkItem =
- ExAllocatePool
- (NonPagedPool,
- sizeof(WORK_QUEUE_ITEM) + sizeof(PVOID));
- ExInitializeWorkItem
- (WorkItem,
- DbgkpDelayedTerminateProcess,
- WorkItem);
- *((PEPROCESS *)&WorkItem[1]) = OwnerProcess;
- ExQueueWorkItem(WorkItem, CriticalWorkQueue);
+ /* Terminate the process */
+ PsTerminateProcess(OwnerProcess, STATUS_DEBUGGER_INACTIVE);
}
/* Dereference the debug object */