windows-afsd-shutdown-20080829
authorJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 30 Aug 2008 03:04:53 +0000 (03:04 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 30 Aug 2008 03:04:53 +0000 (03:04 +0000)
LICENSE MIT

reorganize the service shutdown order to permit dirty buffers to be
flushed to the file server without competition from incoming requests.

src/WINNT/afsd/afsd_service.c

index 6587b30..4a75d03 100644 (file)
@@ -1448,14 +1448,6 @@ afsd_Main(DWORD argc, LPTSTR *argv)
     DismountGlobalDrives();
     afsi_log("Global Drives dismounted");
                                          
-    cm_DaemonShutdown();                 
-    afsi_log("Daemon shutdown complete");
-    
-    afsd_ShutdownCM();
-
-    buf_Shutdown();                      
-    afsi_log("Buffer shutdown complete");
-                                         
     smb_Shutdown();                      
     afsi_log("smb shutdown complete");   
                                          
@@ -1463,6 +1455,14 @@ afsd_Main(DWORD argc, LPTSTR *argv)
 
     cm_ReleaseAllLocks();
 
+    cm_DaemonShutdown();                 
+    afsi_log("Daemon shutdown complete");
+    
+    buf_Shutdown();                      
+    afsi_log("Buffer shutdown complete");
+                                         
+    afsd_ShutdownCM();
+
     cm_ShutdownMappedMemory();           
 
     rx_Finalize();