[NTOS]: List still-running processes at kernel shutdown. Useful for debugging shutdown code later.

svn path=/trunk/; revision=46069
This commit is contained in:
Sir Richard 2010-03-10 18:29:10 +00:00
parent c240396ad5
commit c7dbb1670a

View file

@ -118,6 +118,23 @@ VOID
NTAPI
PopGracefulShutdown(IN PVOID Context)
{
PEPROCESS Process = NULL;
/* Loop every process */
Process = PsGetNextProcess(Process);
while (Process)
{
/* Make sure this isn't the idle or initial process */
if ((Process != PsInitialSystemProcess) && (Process != PsIdleProcess))
{
/* Print it */
DPRINT1("%15s is still RUNNING (%lx)\n", Process->ImageFileName, Process->UniqueProcessId);
}
/* Get the next process */
Process = PsGetNextProcess(Process);
}
/* First, the HAL handles any "end of boot" special functionality */
DPRINT1("HAL shutting down\n");
HalEndOfBoot();