]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: errors: also call deinit_errors_buffers() on deinit()
authorWilly Tarreau <w@1wt.eu>
Wed, 27 Apr 2022 15:50:53 +0000 (17:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 27 Apr 2022 15:50:53 +0000 (17:50 +0200)
commit032e700e8bd1cd947d1cb7028b0dda102419cbdd
tree3933ea6a3c5ca00ad5ab35d71414cbd1e0612f6b
parent10243938db38044a2977eedf806c79412fd8c9a4
CLEANUP: errors: also call deinit_errors_buffers() on deinit()

Tim reported in issue #1676 that we don't release startup logs if we
warn during startup and quit before creating threads (e.g. -c -f ...).
Let's subscribe deinit_errors_buffers() to both thread's end and
deinit. That's OK since it uses both per-thread and global variables,
and is idempotent.
src/errors.c