]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: log: don't CLOEXEC the inherited FDs
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 13 Nov 2018 17:30:12 +0000 (18:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Nov 2018 18:32:45 +0000 (19:32 +0100)
commita8b2671cf6fd2edf1614397aac22db3bd08bba0a
tree473c64a464fdcf6a1ee013278c2d21a8a483b5cd
parent2e8fad9c3042a2bb48a4409e12c73a86a5f53a37
BUG/MEDIUM: log: don't CLOEXEC the inherited FDs

When configuring the logs with a FD and using the master worker, the FD
was closed upon a reload because it was configured with CLOEXEC. It
leads to using the wrong FD for the logs and to close them. Which is
unfortunate since the master rely on the FD left opened during a reload.

The fix is to stop doing a CLOEXEC when the FD is inherited.
No backport needed.
src/log.c