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:
@ -2280,6 +2280,11 @@ static void init(void)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Load / reload timezone data (in case it changed)
|
||||
*/
|
||||
tzset();
|
||||
|
||||
/*
|
||||
* Read configuration file(s)
|
||||
*/
|
||||
|
Reference in New Issue
Block a user