From 3739062957b3d59495c53323885974f6c1e71e4d Mon Sep 17 00:00:00 2001 From: ghelmer Date: Tue, 27 Apr 2004 14:43:03 +0000 Subject: 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. --- sbin/adjkerntz/adjkerntz.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sbin/adjkerntz') 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); -- cgit v1.1