mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-22 09:20:43 -05:00
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.
This commit is contained in:
parent
10243938db
commit
032e700e8b
1 changed files with 2 additions and 0 deletions
|
|
@ -375,4 +375,6 @@ static void deinit_errors_buffers()
|
|||
ha_free(&usermsgs_ctx.str.area);
|
||||
}
|
||||
|
||||
/* errors might be used in threads and even before forking, thus 2 deinit */
|
||||
REGISTER_PER_THREAD_FREE(deinit_errors_buffers);
|
||||
REGISTER_POST_DEINIT(deinit_errors_buffers);
|
||||
|
|
|
|||
Loading…
Reference in a new issue