commit | 789691778fde0e792377b631e2c076f449ce6515 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Tue Dec 19 10:35:53 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Dec 19 14:03:30 2017 +0100 |
tree | ed0ea1268c310a3dd5c13699eaa605561609479d | |
parent | 60a2ee79453681822beb31864b028af66dcf4b0a [diff] |
BUG/MEDIUM: mworker: Set FD_CLOEXEC flag on log fd A log socket (UDP or UNIX) is opened by the master during its startup, when the first log message is sent. So, to prevent FD leaks, we must ensure we correctly close it during a reload. By setting FD_CLOEXEC bit on it, we are sure it will be automatically closed it during a reload. This patch must be backported in 1.8.