]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
kevent(2): Bugfix for wrong EVFILT_TIMER timeouts
authorJan Kokemüller <jan.kokemueller@gmail.com>
Sat, 9 Jan 2021 19:00:25 +0000 (20:00 +0100)
committerGordon Bergling <gbe@FreeBSD.org>
Sat, 30 Jan 2021 10:11:55 +0000 (11:11 +0100)
commit6a3ad2d0a7b633bad2bb33f9c4c426dffcc91633
tree75435579a8577a54f1d81210bfe40e0a48f83def
parentf56d7f838f5b3aa0f55b10406eaa7eb760a3ba18
kevent(2): Bugfix for wrong EVFILT_TIMER timeouts

When using NOTE_NSECONDS in the kevent(2) API, US_TO_SBT should be
used instead of NS_TO_SBT, otherwise the timeout results are
misleading.

PR: 252539
Reviewed by: kevans, kib
Approved by: kevans
Differential Revision: https://reviews.freebsd.org/D28067

(cherry picked from commit 4d0c33be634a929f323117f04e6b1670776f9e37)
sys/kern/kern_event.c