Re: nanosleep() uses CLOCK_MONOTONIC, should be CLOCK_REALTIME?

From: Bart Van Assche
Date: Tue Jun 24 2008 - 05:28:23 EST


>> nor by adjtimex() (this last one is used by ntpd).
>
> That surprised me a little. So gradual adjustments to the time made
> by adjtime() / adjtimex() really don't affect nanosleep()?

Does the adjtime() system call still exist ? I could not find any
information about this system call in the 2.6.25 kernel source code.

Frequency adjustments made via the adjtimex() system call do affect
nanosleep() of course (via timex::freq and/or timex::tick). Stepwise
time adjustments, whether gradual or not, should not affect
nanosleep().

Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/