Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Dec 2016 19:23:00 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 214987] updating EVFILT_TIMER kqueue events doesn't work
Message-ID:  <bug-214987-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214987

            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: bwelling@xbill.org

Created attachment 177580
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177580&action=
=3Dedit
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 wa=
its.
 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=20
kevent time: 1217

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214987-8>