]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: startup: move nofile limit checks in limits.c
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Mon, 25 Nov 2024 15:15:17 +0000 (16:15 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 16 Dec 2024 09:44:01 +0000 (10:44 +0100)
commitfbc534a6fab8ef75e53c009ceb0ed16264a8bf02
tree0847c723679f17cf6b960ae992cc2146748a2ab4
parent14f5e00d38fb1426223e28db276a31cf5ada14e3
REORG: startup: move nofile limit checks in limits.c

Let's encapsulate the code, which checks the applied nofile limit into
a separate helper check_nofile_lim_and_prealloc_fd(). Let's keep in this new
function scope the block, which tries to create a copy of FD with the highest
number, if prealloc-fd is set in the configuration.
include/haproxy/limits.h
src/haproxy.c
src/limits.c