diff options
Diffstat (limited to 'sbin/adjkerntz')
-rw-r--r-- | sbin/adjkerntz/adjkerntz.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sbin/adjkerntz/adjkerntz.c b/sbin/adjkerntz/adjkerntz.c index 4cc1098..8cd3ff9 100644 --- a/sbin/adjkerntz/adjkerntz.c +++ b/sbin/adjkerntz/adjkerntz.c @@ -132,6 +132,11 @@ again: looping = False; wall_clock = (access(_PATH_CLOCK, F_OK) == 0); + if (init && !sleep_mode) { + init = False; + if (!wall_clock) + return 0; + } mib[0] = CTL_MACHDEP; mib[1] = CPU_ADJKERNTZ; @@ -335,7 +340,7 @@ recalculate: /****** End of critical section ******/ if (init && wall_clock) { - init = False; + sleep_mode = False; /* wait for signals and acts like -a */ (void) sigsuspend(&emask); goto again; |