mirror of
https://github.com/reactos/reactos.git
synced 2025-01-01 03:54:02 +00:00
- Revert 32007 by Alex's request. Explanations in the ros-dev mailing list.
svn path=/trunk/; revision=32016
This commit is contained in:
parent
57d135db9d
commit
16e90bb8ca
1 changed files with 2 additions and 21 deletions
|
@ -1063,17 +1063,6 @@ DbgkpDeleteObject(IN PVOID DebugObject)
|
||||||
ASSERT(IsListEmpty(&((PDEBUG_OBJECT)DebugObject)->EventList));
|
ASSERT(IsListEmpty(&((PDEBUG_OBJECT)DebugObject)->EventList));
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
DbgkpCloseObject(IN PEPROCESS OwnerProcess OPTIONAL,
|
DbgkpCloseObject(IN PEPROCESS OwnerProcess OPTIONAL,
|
||||||
|
@ -1140,16 +1129,8 @@ DbgkpCloseObject(IN PEPROCESS OwnerProcess OPTIONAL,
|
||||||
/* Check if we terminate on exit */
|
/* Check if we terminate on exit */
|
||||||
if (DebugObject->KillProcessOnExit)
|
if (DebugObject->KillProcessOnExit)
|
||||||
{
|
{
|
||||||
PWORK_QUEUE_ITEM WorkItem =
|
/* Terminate the process */
|
||||||
ExAllocatePool
|
PsTerminateProcess(OwnerProcess, STATUS_DEBUGGER_INACTIVE);
|
||||||
(NonPagedPool,
|
|
||||||
sizeof(WORK_QUEUE_ITEM) + sizeof(PVOID));
|
|
||||||
ExInitializeWorkItem
|
|
||||||
(WorkItem,
|
|
||||||
DbgkpDelayedTerminateProcess,
|
|
||||||
WorkItem);
|
|
||||||
*((PEPROCESS *)&WorkItem[1]) = OwnerProcess;
|
|
||||||
ExQueueWorkItem(WorkItem, CriticalWorkQueue);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dereference the debug object */
|
/* Dereference the debug object */
|
||||||
|
|
Loading…
Reference in a new issue