mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 07:41:51 +00:00
[NTOS]: List still-running processes at kernel shutdown. Useful for debugging shutdown code later.
svn path=/trunk/; revision=46069
This commit is contained in:
parent
c240396ad5
commit
c7dbb1670a
1 changed files with 17 additions and 0 deletions
|
@ -118,6 +118,23 @@ VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
PopGracefulShutdown(IN PVOID Context)
|
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 */
|
/* First, the HAL handles any "end of boot" special functionality */
|
||||||
DPRINT1("HAL shutting down\n");
|
DPRINT1("HAL shutting down\n");
|
||||||
HalEndOfBoot();
|
HalEndOfBoot();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue