]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: tree-wide: use fd_set_nonblock() and fd_set_cloexec()
authorWilly Tarreau <w@1wt.eu>
Tue, 26 Apr 2022 08:24:14 +0000 (10:24 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Apr 2022 08:59:48 +0000 (10:59 +0200)
commit382474348c681cc6277603d1a40ac438690a987c
tree46aa24cfc7ab4ffc3e4b259fa6090bc0e3a3b608
parenta80e4a3546ccee7f8114a88a0a17e09e544d31e2
CLEANUP: tree-wide: use fd_set_nonblock() and fd_set_cloexec()

This gets rid of most open-coded fcntl() calls, some of which were passed
through DISGUISE() to avoid a useless test. The FD_CLOEXEC was most often
set without preserving previous flags, which could become a problem once
new flags are created. Now this will not happen anymore.
12 files changed:
src/debug.c
src/dns.c
src/fd.c
src/log.c
src/mworker.c
src/proto_quic.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/sock.c
src/sock_inet.c
src/sock_unix.c