From: Willy Tarreau Date: Wed, 6 Oct 2021 19:43:38 +0000 (+0200) Subject: CLENAUP: wdt: use ha_tkill() instead of accessing pthread directly X-Git-Tag: v2.5-dev9~52 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19b18ad552f612e45a79e248460a6236d4baa931;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/wdt.c b/src/wdt.c index c42c4f7a07..f1aa3ec868 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();