server: Close logfile later on SIGHUP.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 31 Dec 2017 19:27:57 +0000 (20:27 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 11 Feb 2018 10:28:17 +0000 (11:28 +0100)
The call to daemon_open_log_or_die() will close the log file just
before it is reopened. This is better because that way any errors
which occur in between won't get lost.

server.c

index 8c2a78f4a62ed4fd32a0a95174aa03bb88178ec7..e9c1f12eeda3d4bfea1f59524ffacdad44201547 100644 (file)
--- a/server.c
+++ b/server.c
@@ -185,7 +185,6 @@ void parse_config_or_die(bool reload)
        struct lls_parse_result *cf_lpr, *merged_lpr;
        char *home = para_homedir();
 
-       daemon_close_log();
        if (OPT_GIVEN(CONFIG_FILE))
                cf = para_strdup(OPT_STRING_VAL(CONFIG_FILE));
        else