mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 06:11:32 +01:00
BUG/MINOR: haproxy: always initialize sleeping_thread_mask
Surprizingly the variable was never initialized, though on most platforms it's zeroed at boot, and it is relatively harmless anyway since in the worst case the bits are updated around poll(). This was introduced by commit 79321b95a85 and needs to be backported as far as 1.9.
This commit is contained in:
parent
51d9339d04
commit
f8ea00e05e
@ -145,7 +145,8 @@ int relative_pid = 1; /* process id starting at 1 */
|
||||
unsigned long pid_bit = 1; /* bit corresponding to the process id */
|
||||
unsigned long all_proc_mask = 1; /* mask of all processes */
|
||||
|
||||
volatile unsigned long sleeping_thread_mask; /* Threads that are about to sleep in poll() */
|
||||
volatile unsigned long sleeping_thread_mask = 0; /* Threads that are about to sleep in poll() */
|
||||
|
||||
/* global options */
|
||||
struct global global = {
|
||||
.hard_stop_after = TICK_ETERNITY,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user