]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: polling: make epoll and kqueue not depend on maxfd anymore
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Jan 2018 13:58:02 +0000 (14:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jan 2018 14:18:54 +0000 (15:18 +0100)
commitce036bc2daec3bb407f801f1bab366ee383b76b0
tree060a93111c1c7cbdc90c89079fa775833d6daba5
parentccea35c9800756f867aff8ec2752fa75480ac345
MINOR: polling: make epoll and kqueue not depend on maxfd anymore

Maxfd is really only useful to poll() and select(), yet epoll and
kqueue reference it almost by mistake :
  - cloning of the initial FDs (maxsock should be used here)
  - max polled events, it's maxpollevents which should be used here.

Let's fix these places.
src/ev_epoll.c
src/ev_kqueue.c
src/fd.c