]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
main: initialise privops sooner
authorMiroslav Lichvar <mlichvar@redhat.com>
Wed, 9 Dec 2015 13:59:12 +0000 (14:59 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 10 Dec 2015 14:25:56 +0000 (15:25 +0100)
System drivers may need it in their initialisation.

main.c

diff --git a/main.c b/main.c
index 46f0f31b290f7dc04aa3bbafd3d6914372d164a7..214934eadee2637bbc79299f38ac651fe6351623 100644 (file)
--- a/main.c
+++ b/main.c
@@ -112,7 +112,6 @@ MAI_CleanupAndExit(void)
   NCR_Finalise();
   NIO_Finalise();
   CAM_Finalise();
-  PRV_Finalise();
   KEY_Finalise();
   RCL_Finalise();
   SRC_Finalise();
@@ -121,6 +120,7 @@ MAI_CleanupAndExit(void)
   SYS_Finalise();
   SCH_Finalise();
   LCL_Finalise();
+  PRV_Finalise();
 
   delete_pidfile();
   
@@ -479,6 +479,7 @@ int main
    * be done *AFTER* the daemon-creation fork() */
   write_lockfile();
 
+  PRV_Initialise();
   LCL_Initialise();
   SCH_Initialise();
   SYS_Initialise();
@@ -486,7 +487,6 @@ int main
   SRC_Initialise();
   RCL_Initialise();
   KEY_Initialise();
-  PRV_Initialise();
 
   /* Open privileged ports before dropping root */
   CAM_Initialise(address_family);