]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: startup: encapsulate master's code in run_master
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 7 Oct 2024 09:28:30 +0000 (11:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commit1cee184145d3c4552ea71146882e448e05cd5501
treebd264fe31cc5d17d69fca220e1697e496022cad9
parente5cd81cf8f154a0308c4dc0a08287acd237c433a
MINOR: startup: encapsulate master's code in run_master

Let's encapsulate master's code (steps which it does before entering in its
polling loop and deinitialization routines after) in a separate run_master()
function. This makes the code of main() more readable. In future we plan to put
in run_master() more master process related code, in order to clean completely
init_step_2(), init_step_3() and init_step_4().
src/haproxy.c