]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: systemd: replace SOCK_CLOEXEC by fcntl call to FD_CLOEXEC
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 20 Nov 2024 12:50:58 +0000 (13:50 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 20 Nov 2024 13:26:23 +0000 (14:26 +0100)
commitb861dc93717c1ab1c0ed440d63f54f58d681da30
tree1eb13d50b087e372d30194a33c45aa01f940a4ad
parent1ceeeacbad8d25d7bd7d427bb86f9d2dc9a03523
MINOR: systemd: replace SOCK_CLOEXEC by fcntl call to FD_CLOEXEC

Since we build systemd.o for every target, we need it to be more
portable.

The SOCK_CLOEXEC argument from socket() is not portable and won't build
on some OS like macOS X.

This patch fixes the issue by replace SOCK_CLOEXEC by a fnctl set to
FD_CLOEXEC.
src/systemd.c