]> Sergey Matveev's repositories - public-inbox.git/commit
ds: always use EV_ADD with EV_SET
authorEric Wong <e@80x24.org>
Mon, 24 Jun 2019 02:52:47 +0000 (02:52 +0000)
committerEric Wong <e@80x24.org>
Mon, 24 Jun 2019 05:26:27 +0000 (05:26 +0000)
commitb86c1790854c6d8b8299e5b71ad067b97cff548b
treea0a01818e2ae99848b2ca0f1deb0e1872fd68a30
parent6ea82fb5d6cd5ae6813f3700fe915ab9110086ea
ds: always use EV_ADD with EV_SET

kqueue EV_ONESHOT semantics are different than epoll
EPOLLONESHOT.  epoll only disables watches for that event while
keeping the item in the rbtree for future EPOLL_CTL_MOD.  kqueue
removes the watch from the filter set entirely, necessitating
the use of EV_ADD for future modifications.
lib/PublicInbox/DS.pm