]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: startup: remove MODE_MWORKER_WAIT
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Tue, 9 Jul 2024 12:03:01 +0000 (14:03 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commitfe75c1e12da061c0ed6f533061aae01d8a58a1e5
tree944faeda5822735967890bb0d925b1ba381d7a30
parentfb7bef781db1ff64e03652659dd1d0dd5399d547
MEDIUM: startup: remove MODE_MWORKER_WAIT

MODE_MWORKER_WAIT becames redundant with MODE_MWORKER, due to moving
master-worker fork in init(). This change allows master no longer perform
reexec just after forking in order to free additional memory.

As after the fork in the master process we set 'master' variable, we can
replace now MODE_MWORKER_WAIT in some 'if' statements by simple check of this
'master' variable.

Let's also continue to get rid of HAPROXY_MWORKER_WAIT_ONLY environment
variable, as it's no longer needed as well.

In cfg_program_postparser(), which is used to check if cmdline is defined to
launch a program, we completely remove the check of mode for now, because
the master process does not parse the configuration for the moment. 'program'
section parsing will be reintroduced in master later in the next commits.
include/haproxy/global-t.h
src/errors.c
src/haproxy.c
src/http_client.c
src/mworker-prog.c
src/resolvers.c