mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-11 17:46:57 +02:00
MINOR: thread: use ltid_bit in ha_tkillall()
Since commit cc7a11ee3
("MINOR: threads: set the tid, ltid and their bit
in thread_cfg") we ought not use (1UL << thr) to get the group mask for
thread <thr>, but (ha_thread_info[thr].ltid_bit). ha_tkillall() needs
this.
This commit is contained in:
parent
1e7f0d68b0
commit
c6cf64bb5e
@ -315,7 +315,7 @@ void ha_tkillall(int sig)
|
|||||||
unsigned int thr;
|
unsigned int thr;
|
||||||
|
|
||||||
for (thr = 0; thr < global.nbthread; thr++) {
|
for (thr = 0; thr < global.nbthread; thr++) {
|
||||||
if (!(all_threads_mask & (1UL << thr)))
|
if (!(tg->threads_enabled & ha_thread_info[thr].ltid_bit))
|
||||||
continue;
|
continue;
|
||||||
if (thr == tid)
|
if (thr == tid)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user