From: Andre Noll Date: Sun, 31 Dec 2017 19:27:57 +0000 (+0100) Subject: server: Close logfile later on SIGHUP. X-Git-Tag: v0.6.2~37 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=ec05ce7931f80398c0d628d93c7892d71094d320;ds=sidebyside server: Close logfile later on SIGHUP. 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. --- diff --git a/server.c b/server.c index 8c2a78f4..e9c1f12e 100644 --- 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