]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: startup: split main: add step_init_3
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 7 Oct 2024 08:37:01 +0000 (10:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commitc4795e4019b0d1762c2a835435df4b32fdf64bbc
tree20bd8fbb115c4e3917e478d13a2d26347c740910
parent49772c55e3b0b4d1958bf58a27325b45d5266ce6
MINOR: startup: split main: add step_init_3

The first part of main(), just after calling the former init() and before
trying to bind listeners, need to be also encapsulated into a separate
step_init_3() as it is. It contains important blocks to register signals, to
apply memory and nofile limits, etc. The order of these blocks should be also
preserved (especially the signals part).

For the moment step_init_3() must be also executed for all runtime modes.
src/haproxy.c