From 19b18ad552f612e45a79e248460a6236d4baa931 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 6 Oct 2021 21:43:38 +0200 Subject: [PATCH] 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. --- src/wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wdt.c b/src/wdt.c index c42c4f7..f1aa3ec 100644 --- a/src/wdt.c +++ b/src/wdt.c @@ -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(); -- 1.7.10.4