MINOR: startup: encapsulate sock_get_old_sockets in a function
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 7 Oct 2024 08:53:47 +0000 (10:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Oct 2024 20:02:39 +0000 (22:02 +0200)
commitbabbcb047ede1b2d68f3b4df172b312335e6304e
treece4b7198ea16c5f2edd533c19ae8aa880f876686
parentf4e73b4302c4a5d4ef6ba8ab3fba420c6bffc48b
MINOR: startup: encapsulate sock_get_old_sockets in a function

Let's encapsulate here the code, that calls sock_get_old_sockets() to obtain
listeners sockets from the previous process into a separate function. This
will make the code of main() more readable and we can move this new function
(if we might need so) in future.
src/haproxy.c