Invoke tzset(3) within the main loop to catch changes to /etc/localtime

when running as a daemon in the hope that it will fix situations
where the CMOS clock was apparently set using the stale TZ offset.
This commit is contained in:
Guy Helmer 2004-04-27 14:43:03 +00:00
parent 3fa30d6c9a
commit d5ac36eda7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=128683

View file

@ -148,6 +148,8 @@ main(int argc, char *argv[])
return 0;
}
tzset();
mib[0] = CTL_MACHDEP;
mib[1] = CPU_ADJKERNTZ;
len = sizeof(kern_offset);