]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: deinit of thread poller was called when not initialized
authorWilliam Lallemand <wlallemand@haproxy.org>
Fri, 26 Nov 2021 13:43:57 +0000 (14:43 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 26 Nov 2021 13:43:57 +0000 (14:43 +0100)
commitefd954793e60131932c61883d0869c7912a5d12c
treef0aca4acab6e2b06538f21a5a35e263b6c1509a5
parentd450ff636c00da113e6069648e63824245deaad9
BUG/MINOR: mworker: deinit of thread poller was called when not initialized

Commit 67e371e ("BUG/MEDIUM: mworker: FD leak of the eventpoll in wait
mode") introduced a regression. Upon a reload it tries to deinit the
poller per thread, but no poll loop was initialized after loading the
configuration.

This patch fixes the issue by moving this part of the code in
mworker_reload(), since this function will be called only when the
poller is fully initialized.

This patch must be backported in 2.5.
src/haproxy.c