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:
parent
3fa30d6c9a
commit
d5ac36eda7
@ -148,6 +148,8 @@ main(int argc, char *argv[])
|
||||
return 0;
|
||||
}
|
||||
|
||||
tzset();
|
||||
|
||||
mib[0] = CTL_MACHDEP;
|
||||
mib[1] = CPU_ADJKERNTZ;
|
||||
len = sizeof(kern_offset);
|
||||
|
Loading…
Reference in New Issue
Block a user