]> git.kaiwu.me - haproxy.git/commit
BUILD: listener: Fix the build on platforms without MSG_CMSG_CLOEXEC
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 30 Jul 2026 12:03:55 +0000 (14:03 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 30 Jul 2026 12:00:07 +0000 (14:00 +0200)
commit9afec06e0eb477e29b7eeaf9eb8b5039ca4a470a
tree4e555e7bf2a3f1ec041a54a485813ceceb02bed0
parent5664f21c3690c584cef0dceb59f494ad183f9c98
BUILD: listener: Fix the build on platforms without MSG_CMSG_CLOEXEC

Some OSes, such as macos, do not provide MSG_CMSG_CLOEXEC, so provide a
fallback mechanism using fdcntl(FD_CLOEXEC) instead.
It doesn't matter right now, that code will never be used on such OS,
because you can't use per-thread-group fd tables in there, but maybe it
will change one day.
include/haproxy/compat.h
src/listener.c