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@FreeBSD.org
          Reporter: bwell...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to