mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-19 05:25:41 +00:00
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.
This commit is contained in:
parent
62af9c83f9
commit
0627815f70
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user