]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
re-open log file even if no config was changed
authorAlan T. DeKok <aland@freeradius.org>
Fri, 5 Jun 2015 18:27:45 +0000 (14:27 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 5 Jun 2015 18:41:20 +0000 (14:41 -0400)
src/main/mainconfig.c

index 38a58ae82a99c1e49b408b2a729029b7261fffe8..73087ac8034968789cf7d0fc331ac81e41469c54 100644 (file)
@@ -1056,6 +1056,15 @@ void main_config_hup(void)
        CONF_SECTION *cs;
        char buffer[1024];
 
+       /*
+        *      Re-open the log file.  If we can't, then keep logging
+        *      to the old log file.
+        *
+        *      The "open log file" code is here rather than in log.c,
+        *      because it makes that function MUCH simpler.
+        */
+       hup_logfile();
+
        if (!cf_file_changed(cs_cache->cs)) {
                INFO("HUP - No files changed.  Ignoring");
                return;
@@ -1094,15 +1103,6 @@ void main_config_hup(void)
        cc->next = cs_cache;
        cs_cache = cc;
 
-       /*
-        *      Re-open the log file.  If we can't, then keep logging
-        *      to the old log file.
-        *
-        *      The "open log file" code is here rather than in log.c,
-        *      because it makes that function MUCH simpler.
-        */
-       hup_logfile();
-
        INFO("HUP - loading modules");
 
        /*