CLENAUP: wdt: use ha_tkill() instead of accessing pthread directly

Instead of calling pthread_kill() directly on the pthread_t let's
call ha_tkill() which does the same by itself. This will help isolate
pthread_t.
This commit is contained in:
Willy Tarreau 2021-10-06 21:43:38 +02:00
parent b63888c67c
commit 19b18ad552

View File

@ -115,7 +115,7 @@ void wdt_handler(int sig, siginfo_t *si, void *arg)
*/
#ifdef USE_THREAD
if (thr != tid)
pthread_kill(ha_thread_info[thr].pthread, sig);
ha_tkill(thr, sig);
else
#endif
ha_panic();