On Mon, Jan 16, 2006 at 03:52:47PM +0000, Andrew Stribblehill wrote:
> Package: openntpd
> Version: 3.7p1-1
> Followup-For: Bug #306106
>
> I see the same symptoms as the original submitter. However, when running
> it under strace, I see:
>
> write(2, "adjusting local clock by 0.17380"..., 35) = 35
> adjtimex({modes=32769, offset=171689, freq=0, maxerror=16384000,
> esterror=16384000, status=64, constant=2, precision=1,
> tolerance=33554432, time={1137426537, 876854}}) = 5
Note that openntpd does not call adjtimex(), but glibc wraps the
call adjtime() to adjtimex().
So modes is 0x8001 (32769):
#define ADJ_OFFSET_SINGLESHOT 0x8001 /* old-fashioned adjtime() */
> man 2 adjtimex tells me that a return code of 5 is:
>
> #define TIME_BAD 5 /* clock not synchronized */
>
> If nothing else, this is confusing behaviour.
That is because is it's syncrhonized, because it's using the
ADJ_OFFSET_SINGLESHOT. It doesn't mean there is an error.
Also note that on error it returns -1, and not 5.
Kurt
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]