]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: limits: prepare to keep limits in one place
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 10 Jul 2024 10:15:45 +0000 (12:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Jul 2024 16:05:48 +0000 (18:05 +0200)
commit1517bcb5e3ef5bea93b0e7f64033b51240fdeb24
tree6a8ac109e80432a97c77f509898562565010c3e3
parenta4bc71a1a3530586a17e3849271bfadb1c636c86
MINOR: limits: prepare to keep limits in one place

The code which gets, sets and checks initial and current fd limits and process
related limits (maxconn, maxsock, ulimit-n, fd-hard-limit) is spread around
different functions in haproxy.c and in fd.c. Let's group it together in
dedicated limits.c and limits.h.

This patch is done in order to prepare the moving of limits-related functions
from different places to the new 'limits' compilation unit. It helps to keep
clean the next patch, which will do only the move without any additional
modifications.

Such detailed split is needed in order to be sure not to break accidentally
limits logic and in order to be able to compile each commit separately in case
of git-bisect.
Makefile
include/haproxy/limits.h [new file with mode: 0644]
src/extcheck.c
src/haproxy.c
src/limits.c [new file with mode: 0644]