From d5ac36eda752e6ba04ae462709446fb085520b50 Mon Sep 17 00:00:00 2001 From: Guy Helmer Date: Tue, 27 Apr 2004 14:43:03 +0000 Subject: [PATCH] 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(+) diff --git a/sbin/adjkerntz/adjkerntz.c b/sbin/adjkerntz/adjkerntz.c index 40669c206408..bf390107ea95 100644 --- a/sbin/adjkerntz/adjkerntz.c +++ b/sbin/adjkerntz/adjkerntz.c @@ -148,6 +148,8 @@ main(int argc, char *argv[]) return 0; } + tzset(); + mib[0] = CTL_MACHDEP; mib[1] = CPU_ADJKERNTZ; len = sizeof(kern_offset);