commit | d913800a7d680fdd7e7864463d5fa936b9d58fa8 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.com> | Tue Nov 27 12:02:39 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Nov 27 19:34:00 2018 +0100 |
tree | f80a30221ec86b1f0cd76626ac659fe830715554 | |
parent | 4b58c80ee20eb8b460f65d6e8b7b73f037df7766 [diff] |
BUG/MEDIUM: listeners: CLOEXEC flag is not correctly set The CLOEXEC flag was set using a F_SETFL which can't work. To set the CLOEXEC flag F_SETFD should be used, the problem is that it needs a new call to fcntl() and it's on the path of every accept. This flag was only needed in the case of the master, so the patch was reverted and the flag set only in this case. The bug was introduced by 0b3e849 ("MEDIUM: listeners: set O_CLOEXEC on the accepted FDs"). No backport needed.