Clock (adjtime()) weirdness

Mike Bell mb at sparrms.ists.ca
Fri Feb 22 07:15:00 AEST 1991


One of our Suns (an ancient 3/260) exhibits odd behaviour when the clock
time is adjusted using the adjtime(2) system call. The observed behaviour
is this:

    adjtime( &delta, NULL ) is called where

		delta.tv_sec = 0;
		delta.tv_usec = -23500000; /* approx */

The clock time slowly adjusts to "lose" 23.5 secs, then, when it has done
this, *rapidly* adjusts again until it is back to 23.5 secs out*!

This also applies to the date -a command doing the same thing.

However, attempts to set the clock directly to the correct time do not
appear to encounter this problem.

There aren't any rdates or local processes running (as far as I can tell)
which reset the time... The same procedures work OK on other machines on
the network.

Anybody got any theories? I've run out of ideas... 



More information about the Comp.sys.sun mailing list