mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 21:05:08 +00:00
Detect if /etc/wall_cmos_clock gone while adjkerntz paused.
This commit is contained in:
parent
4297524c49
commit
88d807a676
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15057
|
@ -132,6 +132,11 @@ int main(argc, argv)
|
|||
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 @@ int main(argc, argv)
|
|||
/****** 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;
|
||||
|
|
Loading…
Reference in a new issue