]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mworker: change the way we set PROC_O_LEAVING
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 10 Nov 2021 10:26:14 +0000 (11:26 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 10 Nov 2021 14:53:01 +0000 (15:53 +0100)
commit90034bba15022b85a875aae3c9a4cde9a4724400
treee8efff3fa7e0bce8d7b2c2ae5cfc93b0d2c8071b
parent3ba7c7b5e18e9adc38e54a9900f9b5cb7fbb0d0d
MINOR: mworker: change the way we set PROC_O_LEAVING

Since the wait mode is always used once we successfuly loaded the
configuration, every processes were marked as old workers.

To fix this, the PROC_O_LEAVING flag is set only on the processes which
have a number of reloads greater than the current processes.
src/mworker.c