BUG/MEDIUM: init: restore behavior of command-line "-m" for memory limitation
authorWilly Tarreau <w@1wt.eu>
Sat, 17 Jul 2021 10:31:08 +0000 (12:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 17 Jul 2021 10:31:08 +0000 (12:31 +0200)
commit79c9bdf63dc0e38a7ccfa608b962faf2bdbb3c73
treea2719a2670f842e887ce4dea1de126dd59398d98
parentf2e44d4e871f2a3854728ad1c9ede8894df96033
BUG/MEDIUM: init: restore behavior of command-line "-m" for memory limitation

The removal for the shared inter-process cache in commit 6fd0450b4
("CLEANUP: shctx: remove the different inter-process locking techniques")
accidentally removed the enforcement of rlimit_memmax_all which
corresponds to what is passed to the command-line "-m" argument.
Let's restore it.

Thanks to @nafets227 for spotting this. This fixes github issue #1319.
src/haproxy.c