summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bind/lib/dns/tcpmsg.c
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2020-01-18 08:59:48 +0000
committervisa <visa@openbsd.org>2020-01-18 08:59:48 +0000
commit94dbc69abff2bc146c3ff0d3117d0f13249b4178 (patch)
tree58ab50453725fc046ef1e0478be00aa59ebe5322 /usr.sbin/bind/lib/dns/tcpmsg.c
parentClear mount operation argument flags from mnt_flag after mount. (diff)
downloadwireguard-openbsd-94dbc69abff2bc146c3ff0d3117d0f13249b4178.tar.xz
wireguard-openbsd-94dbc69abff2bc146c3ff0d3117d0f13249b4178.zip
Make klist_invalidate() more careful and general. Acquire knotes before
changing them, to synchronize with kqueue_register() and kqueue_scan(). Detach the knotes from the original knote list, change the filterops to one that always indicates EOF condition, and activate in one-shot mode. The detaching allows the original knote list head to be deleted after klist_invalidate() returns. The knotes are activated to make the EOF condition visible to the event subscribers as soon as possible. As the knotes are detached from the list, klist_invalidate() does not have to wait for userspace to process them. The use of the special filterops minimizes the need to handle klist invalidation in actual implementations of filterops. Tested by Greg Steuck OK mpi@
Diffstat (limited to 'usr.sbin/bind/lib/dns/tcpmsg.c')
0 files changed, 0 insertions, 0 deletions