BUG/MEDIUM: mworker: FD leak of the eventpoll in wait mode
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 25 Nov 2021 09:03:44 +0000 (10:03 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 2 Dec 2021 14:11:11 +0000 (15:11 +0100)
commit440ee1a64a160891189879171c36bce5bea932d3
treef9d31528d337911395f5452517679114eaa3b483
parent98dd6816dfc352fe6d7b019147b0b363a859e37a
BUG/MEDIUM: mworker: FD leak of the eventpoll in wait mode

Since 2.5, before re-executing in wait mode, the master can have a
working configuration loaded, with a eventpoll fd. This case was not
handled correctly and a new eventpoll FD is leaking in the master at
each reload, which is inherited by the new worker.

Must be backported in 2.5.

(cherry picked from commit 67e371ea1440c67ed84577d37566b577f7ecd336)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/haproxy.c