]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: fd: make fd_insert() apply the thread mask itself
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Jul 2022 09:27:42 +0000 (11:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Jul 2022 17:58:06 +0000 (19:58 +0200)
commit512dd2dc1c17439f71dfa6fb9e020a009eb3d1c7
treef317ceb2b266c6f5d0fc9df29f94f8b290238c40
parent8e2c0fa8e554d189ecb98092bd984790cb05736b
MINOR: fd: make fd_insert() apply the thread mask itself

It's a bit ugly to see that half of the callers of fd_insert() have to
apply all_threads_mask themselves to the bit field they're passing,
because usually it comes from a listener that may have other bits set.
Let's make the function apply the mask itself.
include/haproxy/fd.h
src/proto_sockpair.c
src/sock_inet.c
src/sock_unix.c