BUG/MINOR: thread: use the correct thread's group in ha_tkillall()

In ha_tkillall(), the current thread's group was used to check for the
thread being running instead of using the target thread's group mask.
Most of the time it would not have any effect unless some groups are
uneven where it can lead to incomplete thread dumps for example.

No backport is needed, this is purely 2.7.
This commit is contained in:
Willy Tarreau 2022-07-15 08:27:56 +02:00
parent 52f238d326
commit f15c75a2d3

View File

@ -319,7 +319,7 @@ void ha_tkillall(int sig)
unsigned int thr;
for (thr = 0; thr < global.nbthread; thr++) {
if (!(tg->threads_enabled & ha_thread_info[thr].ltid_bit))
if (!(ha_thread_info[thr].tg->threads_enabled & ha_thread_info[thr].ltid_bit))
continue;
if (thr == tid)
continue;