]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mworker: don't call the thread and fdtab deinit
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 24 Jun 2019 15:40:48 +0000 (17:40 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 24 Jun 2019 15:54:05 +0000 (17:54 +0200)
commit16866670dd0fcb0dbb5d747a467feb008951be49
tree98097099f116e8be157cd1b66df2ecc592ad5226
parentb29861307253fcc25ed086eeb91f0723a24b282b
BUG/MEDIUM: mworker: don't call the thread and fdtab deinit

Before switching to wait mode, the per thread deinit should not be
called, because we didn't initiate threads and fdtab.

The problem is that the master could crash if we try to reload HAProxy

The commit 944e619 ("MEDIUM: mworker: wait mode use standard init code
path") removed the deinit code by accident, but its fix 7c756a8
("BUG/MEDIUM: mworker: fix FD leak upon reload") was incomplete and did
not took care of the WAIT_MODE.

This fix must be backported in 1.9 and 2.0
src/haproxy.c