diff options
author | ghelmer <ghelmer@FreeBSD.org> | 2004-04-27 14:43:03 +0000 |
---|---|---|
committer | ghelmer <ghelmer@FreeBSD.org> | 2004-04-27 14:43:03 +0000 |
commit | 3739062957b3d59495c53323885974f6c1e71e4d (patch) | |
tree | 0892cfc541eb8fdd9a28a72855d0873bbc7c6ffc /sbin/adjkerntz | |
parent | 4914ed4734896975052db6b9671b5936bf7e6e30 (diff) | |
download | FreeBSD-src-3739062957b3d59495c53323885974f6c1e71e4d.zip FreeBSD-src-3739062957b3d59495c53323885974f6c1e71e4d.tar.gz |
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.
Diffstat (limited to 'sbin/adjkerntz')
-rw-r--r-- | sbin/adjkerntz/adjkerntz.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/adjkerntz/adjkerntz.c b/sbin/adjkerntz/adjkerntz.c index 40669c2..bf39010 100644 --- a/sbin/adjkerntz/adjkerntz.c +++ b/sbin/adjkerntz/adjkerntz.c @@ -148,6 +148,8 @@ again: return 0; } + tzset(); + mib[0] = CTL_MACHDEP; mib[1] = CPU_ADJKERNTZ; len = sizeof(kern_offset); |