mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 02:25:17 +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));
|
||||
}
|
||||
|
||||
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,
|
||||
|
@ -1140,16 +1129,8 @@ DbgkpCloseObject(IN PEPROCESS OwnerProcess OPTIONAL,
|
|||
/* 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 */
|
||||
|
|
Loading…
Reference in a new issue