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

Created attachment 177580
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.
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to