Subject: Re: POSIX timer_settime() doesn't set timer in some cases (lost accuracy)
To: Ian Zagorskih <>
From: Nathan J. Williams <>
List: tech-kern
Date: 09/02/2004 12:28:29
Ian Zagorskih <> writes:

> On Thursday 02 September 2004 22:25, Nathan J. Williams wrote:
> > Frederick Bruckman <> writes:
> > > Well, I'm running X and listening to streaming audio with this...
> >
> > I'm a little dubious about this, because there are a bunch of uses of
> > TIMESPEC_TO_TIMEVAL(), most of which don't seem to care about whether
> > the value being zero. I think that property is specific to
> > timer_settime().
> Maybe at least sys_timer_settime() should take care about it ? This shouldn't 
> be hard to add this check.. On the other hand, this simple trick potentially 
> would save some [semi]broken code from unexpected failure.

Oh, sure. I don't disagree that you've found a problem; I was just
responding to Frederick's patch to TIMESPEC_TO_TIMEVAL().

        - Nathan