From c3acff5fae08420a22dba9b7e9aa21b66c193cad Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Fri, 29 Nov 2019 10:31:18 +0100 Subject: [PATCH] syslogd: Only Initialize syslogd once This bug caused syslogd to fall back to logging to /dev/console for internal log messages/errors during reconfiguration at runtime. syslogd has the FreeBSD style of keeping already open log files ready for logging until re:init() has completed, when new log files are rolled in and any old ones not to be used anymore are closed. Signed-off-by: Joachim Nilsson --- src/syslogd.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/syslogd.c b/src/syslogd.c index d3005dc..c93fcd5 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -2088,11 +2088,6 @@ void init(void) char *p; int i; - /* - * Close all open log files and free log descriptor array. - */ - Initialized = 0; - /* Get hostname */ (void)gethostname(LocalHostName, sizeof(LocalHostName)); LocalDomain = emptystring;