[ros-dev] RE: [ros-diffs] [hbirr] 19209: Shutdown the process manager beforeshutdown the registry.

Casper Hornstrup ch at csh-consult.dk
Sun Nov 13 19:42:26 CET 2005


What is it waiting for? Maybe an event is more appropriate?

 

Casper

  _____  

From: ros-diffs-bounces at reactos.org [mailto:ros-diffs-bounces at reactos.org] On Behalf Of hbirr at svn.reactos.com
Sent: 13. november 2005 18:32
To: ros-diffs at reactos.com
Subject: [ros-diffs] [hbirr] 19209: Shutdown the process manager beforeshutdown the registry.

 

Shutdown the process manager before shutdown the registry. 
Running processes may have opened a registry handle.
Modified: trunk/reactos/ntoskrnl/ex/power.c
  _____  


Modified: trunk/reactos/ntoskrnl/ex/power.c

--- trunk/reactos/ntoskrnl/ex/power.c  2005-11-13 17:28:24 UTC (rev 19208)
+++ trunk/reactos/ntoskrnl/ex/power.c  2005-11-13 17:32:01 UTC (rev 19209)
@@ -148,15 +148,16 @@
                                           sizeof(PCH))]);
      }
 
+   PiShutdownProcessManager();
+   Waittime.QuadPart = (LONGLONG)-10000000; /* 1sec */
+   KeDelayExecutionThread(KernelMode, FALSE, &Waittime);
+
    CmShutdownRegistry();
    IoShutdownRegisteredFileSystems();
    IoShutdownRegisteredDevices();
 
-   PiShutdownProcessManager();
    MiShutdownMemoryManager();
 
-   Waittime.QuadPart = (LONGLONG)-10000000; /* 1sec */
-   KeDelayExecutionThread(KernelMode, FALSE, &Waittime);
 
    if (Action == ShutdownNoReboot)
      {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-dev/attachments/20051113/593ff716/attachment.html


More information about the Ros-dev mailing list