mirror of
https://github.com/reactos/reactos.git
synced 2025-07-25 18:34:21 +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
|
||||
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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue