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 <troglobit@gmail.com>
This commit is contained in:
parent
a9758d1559
commit
c3acff5fae
@ -2088,11 +2088,6 @@ void init(void)
|
|||||||
char *p;
|
char *p;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/*
|
|
||||||
* Close all open log files and free log descriptor array.
|
|
||||||
*/
|
|
||||||
Initialized = 0;
|
|
||||||
|
|
||||||
/* Get hostname */
|
/* Get hostname */
|
||||||
(void)gethostname(LocalHostName, sizeof(LocalHostName));
|
(void)gethostname(LocalHostName, sizeof(LocalHostName));
|
||||||
LocalDomain = emptystring;
|
LocalDomain = emptystring;
|
||||||
|
Loading…
Reference in New Issue
Block a user