Load or reload timezone data on init/SIGHUP

This should fix any lingering issues with logging with the wrong
timezone at boot.  As long as syslogd gets HUP'ed after setting
the new timezone.

Improvements to this welcome, of course.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
Joachim Wiberg 2021-02-21 11:47:42 +01:00
parent f54c1d1f30
commit 0901310226

View File

@ -2280,6 +2280,11 @@ static void init(void)
}
}
/*
* Load / reload timezone data (in case it changed)
*/
tzset();
/*
* Read configuration file(s)
*/