]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: startup: fix zero-warning mode
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 17 Jul 2024 16:40:41 +0000 (18:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Jul 2024 03:24:56 +0000 (05:24 +0200)
commitfcd4bf54c8276db2e562decdf9fccaec8de79f9d
tree184dd820ed2ac89b8b92e0a303c7a6bcb55e5ff3
parentbeaa0e16356f33397b972c82f4ef90412767ab19
BUG/MEDIUM: startup: fix zero-warning mode

Let's check the second time a global counter of "ha_warning" messages, if
zero-warning is set. And let's do this just before forking. At this moment we
are sure, that we've already done all init operations, where we could emit
"ha_warning", and we still have stderr fd opened.

Even with the second check, we could lost some late and rare warnings
about failing to drop supplementary groups and about re-enabling core dumps.
Notes about this are added into 'zero-warning' keyword description.
doc/configuration.txt
src/haproxy.c