From 0627815f701ee6549bcf4c2611df8ccdd3bd3fc9 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 10 Mar 2020 09:26:17 +0100 Subject: [PATCH] BUILD: wdt: only test for SI_TKILL when compiled with thread support SI_TKILL is not necessarily defined on older systems and is used only with the pthread_kill() call a few lines below, so it should also be subject to the USE_THREAD condition. --- src/wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wdt.c b/src/wdt.c index 528685acb5..44b35402ab 100644 --- a/src/wdt.c +++ b/src/wdt.c @@ -101,12 +101,12 @@ void wdt_handler(int sig, siginfo_t *si, void *arg) /* No doubt now, there's no hop to recover, die loudly! */ break; - +#ifdef USE_THREAD case SI_TKILL: /* we got a pthread_kill, stop on it */ thr = tid; break; - +#endif default: /* unhandled other conditions */ return; -- 2.47.3