]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: fd: centralize poll timeout computation in compute_poll_timeout()
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Oct 2018 09:25:54 +0000 (11:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Oct 2018 17:59:43 +0000 (19:59 +0200)
commitf37ba94768b0890374e26b64fb8a0fae0a504bf5
treecce9d7eba56d9f018a112b4e7345de8769957eb1
parentb75e828b298c958beb10c830a1ccb3df0840c30c
MINOR: fd: centralize poll timeout computation in compute_poll_timeout()

The 4 pollers all contain the same code used to compute the poll timeout.
This is pointless, let's centralize this into fd.h. This also gets rid of
the useless SCHEDULER_RESOLUTION macro which used to work arond a very old
linux 2.2 bug causing select() to wake up slightly before the timeout.
include/common/config.h
include/proto/fd.h
src/ev_epoll.c
src/ev_kqueue.c
src/ev_poll.c
src/ev_select.c