Commit 50f757c
BUG/MINOR: init: enforce strict-limits when using master-worker
The strict-limits global option was introduced with commit 0fec3ab
("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 haproxy#1042.
Reviewed by William Dauchy <[email protected]>1 parent 6ecd593 commit 50f757c
1 file changed
+6
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3111 | 3111 | | |
3112 | 3112 | | |
3113 | 3113 | | |
3114 | | - | |
3115 | | - | |
| 3114 | + | |
3116 | 3115 | | |
3117 | 3116 | | |
3118 | 3117 | | |
| |||
3135 | 3134 | | |
3136 | 3135 | | |
3137 | 3136 | | |
3138 | | - | |
3139 | | - | |
| 3137 | + | |
3140 | 3138 | | |
3141 | 3139 | | |
3142 | 3140 | | |
| |||
3147 | 3145 | | |
3148 | 3146 | | |
3149 | 3147 | | |
3150 | | - | |
3151 | | - | |
| 3148 | + | |
3152 | 3149 | | |
3153 | 3150 | | |
3154 | 3151 | | |
| |||
3320 | 3317 | | |
3321 | 3318 | | |
3322 | 3319 | | |
3323 | | - | |
3324 | | - | |
| 3320 | + | |
3325 | 3321 | | |
3326 | 3322 | | |
3327 | 3323 | | |
| |||
3608 | 3604 | | |
3609 | 3605 | | |
3610 | 3606 | | |
3611 | | - | |
3612 | | - | |
| 3607 | + | |
3613 | 3608 | | |
3614 | 3609 | | |
3615 | 3610 | | |
| |||
3622 | 3617 | | |
3623 | 3618 | | |
3624 | 3619 | | |
3625 | | - | |
3626 | | - | |
| 3620 | + | |
3627 | 3621 | | |
3628 | 3622 | | |
3629 | 3623 | | |
| |||
0 commit comments