mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 22:28:41 -04:00
BUG/MINOR: Allocate the log buffers before the proxies startup
Since the commit cd7879adc ("BUG/MEDIUM: threads: Run the poll loop on the main
thread too"), the log buffers are allocated after the proxies startup. So log
messages produced during this startup was ignored.
To fix the bug, we restore the initialization of these buffers before proxies
startup.
This is specific to threads, no backport is needed.
This commit is contained in:
parent
51606feaf2
commit
96d4483df7
1 changed files with 5 additions and 0 deletions
|
|
@ -1796,6 +1796,11 @@ static void init(int argc, char **argv)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
if (!init_log_buffers()) {
|
||||
Alert("failed to initialize log buffers.\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
/*
|
||||
* Note: we could register external pollers here.
|
||||
* Built-in pollers have been registered before main().
|
||||
|
|
|
|||
Loading…
Reference in a new issue