My newyear's resolution is...
Paul Herman
pherman at frenchfries.net
Tue Jan 6 21:33:40 PST 2004
On Tue, 6 Jan 2004, Matthew Dillon wrote:
> API, but there is still an issue with the last bit of your kern_time.c
> patch:
>
> + if (tv.tv_sec == 0 && tv.tv_usec < tick)
> + return (0);
>
> The problem is that this may break the guarentee that it sleeps at least
> as long as requested.
That's what the (sleepticks < 1)? contitional in nanosleep()
checked for. I moved the guarantee out of tvtohz() up to
nanosleep() where it "should be".
-Paul.
More information about the Bugs
mailing list