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

> On Thursday 02 September 2004 22:25, Nathan J. Williams wrote:
> > Frederick Bruckman <fredb@immanent.net> 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