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