From: Miroslav Lichvar Date: Wed, 9 Dec 2015 13:59:12 +0000 (+0100) Subject: main: initialise privops sooner X-Git-Tag: 2.3-pre1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=334ac0610270207cdf1a3bafd8c2944d085a8f5a;p=thirdparty%2Fchrony.git main: initialise privops sooner System drivers may need it in their initialisation. --- diff --git a/main.c b/main.c index 46f0f31b..214934ea 100644 --- 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);