BUG/MINOR: init: enforce strict-limits when using master-worker
authorJerome Magnin <jerome@layaute.net>
Tue, 12 Jan 2021 19:19:38 +0000 (20:19 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 13 Jan 2021 12:17:11 +0000 (13:17 +0100)
commit50f757c5fdd7e6eb404103d878f648453d00d73e
tree5227cedc5678727660c45c3259b737361d55fda2
parent6ecd59326f7416dcba215f05a6674d4b9f970749
BUG/MINOR: init: enforce strict-limits when using master-worker

The strict-limits global option was introduced with commit 0fec3ab7b
("MINOR: init: always fail when setrlimit fails"). When used in
conjuction with master-worker, haproxy will not fail when a setrlimit
fails. This happens because we only exit() if master-worker isn't used.

This patch removes all tests for master-worker mode for all cases covered
by strict-limits scope.

This should be backported from 2.1 onward.
This should fix issue #1042.

Reviewed by William Dauchy <wdauchy@gmail.com>
src/haproxy.c