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:
Emil Mikulic 2006-12-13 13:01:41 +00:00
parent 3ed2762831
commit 5ab0496a9b

View File

@ -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)