From c7dbb1670a92d14a330110cad31c2a868f27a40e Mon Sep 17 00:00:00 2001 From: Sir Richard Date: Wed, 10 Mar 2010 18:29:10 +0000 Subject: [PATCH] [NTOS]: List still-running processes at kernel shutdown. Useful for debugging shutdown code later. svn path=/trunk/; revision=46069 --- reactos/ntoskrnl/po/poshtdwn.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/reactos/ntoskrnl/po/poshtdwn.c b/reactos/ntoskrnl/po/poshtdwn.c index 25ee2e3ddf4..dd5113e1bb3 100644 --- a/reactos/ntoskrnl/po/poshtdwn.c +++ b/reactos/ntoskrnl/po/poshtdwn.c @@ -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();