mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Call tzset() during initialization.
truss output suggests this isn't enough to load posixrules (UTC leap seconds data) which happens only after the first request. =(
This commit is contained in:
parent
3ed2762831
commit
5ab0496a9b
@ -2519,6 +2519,7 @@ main(int argc, char **argv)
|
||||
sort_mime_map();
|
||||
xasprintf(&keep_alive_field, "Keep-Alive: timeout=%d\r\n", idletime);
|
||||
init_sockin();
|
||||
tzset(); /* load TZ data; good idea to do this _before_ chroot */
|
||||
|
||||
/* open logfile */
|
||||
if (logfile_name != NULL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user