From ec05ce7931f80398c0d628d93c7892d71094d320 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 31 Dec 2017 20:27:57 +0100 Subject: [PATCH] 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. --- server.c | 1 - 1 file changed, 1 deletion(-) 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 -- 2.39.5