mheily / libkqueue

kqueue(2) compatibility library
Other
236 stars 77 forks source link

When Using NOTE_USECONDS on Linux the Value Passed to timerfd_settime Is Incorrect #120

Closed gerickson closed 2 years ago

gerickson commented 2 years ago

When using NOTE_USECONDS for an EVFILT_TIMER kevent on Linux, the function convert_timedata_to_itimerspec does not correctly handle and scale the data value.

As implemented, the value set in the itimerspec data structure is off by a factor of 1,000.

This branch with:

make check

or:

make -C examples/CFRunLoopTimerExample/ check

has been a good exercise for stress-testing libkqueue, EVFILT_TIMERS in particular.

gerickson commented 2 years ago

This branch with:

make check

or:

make -C examples/CFRunLoopTimerExample/ check

has been a good exercise for stress-testing libkqueue, EVFILT_TIMERS in particular.

gerickson commented 2 years ago

I believe that this can now be closed. opencflite-635.21.6 is now successfully based on top-of-tree libkqueue.