lkml.org 
[lkml]   [2008]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: nanosleep() uses CLOCK_MONOTONIC, should be CLOCK_REALTIME?
On Tue, Jun 24, 2008 at 10:01 AM, Bart Van Assche
<bart.vanassche@gmail.com> wrote:
> On Tue, Jun 24, 2008 at 7:39 AM, Michael Kerrisk
> <mtk.manpages@googlemail.com> wrote:
>> I'll add some text (not quite sure what yet) in the nanosleep() man
>> page on this point.
>
> You could e.g. mention that nanosleep() is neither affected by the
> settimeofday() system call

Thanks. Yes, that follows fairly naturally from the statement about
clock_settime().

> 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()?

--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html


\
 
 \ /
  Last update: 2008-06-24 10:31    [from the cache]
©2003-2011 Jasper Spaans. Advertise on this site