[Bug 214987] updating EVFILT_TIMER kqueue events doesn't work

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Dec 1 19:23:01 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214987

            Bug ID: 214987
           Summary: updating EVFILT_TIMER kqueue events doesn't work
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: bwelling at xbill.org

Created attachment 177580
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=177580&action=edit
test case

When a kqueue timer is created and updated (before the original timer fires),
the update has no effect.  See the attached sample program, which sets a
oneshot timer for 1s in the future, then changes the period to 1ms, then waits.
 The final kevent call waits for (approximately) 1s, which would happen if the
update doesn't take effect.

freebsd-11-x86-64-0:/u0/home/bwelling: ./timer
kevent time: 1000124

On macOS Sierra, for comparison:
wavelet:~: ./timer 
kevent time: 1217

It's possible that reusing timers is not allowed, but I can't find anything in
the documentation that indicates that.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list