]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: threads: add a "stuck" flag to the thread_info struct
authorWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 05:06:44 +0000 (07:06 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 May 2019 09:50:48 +0000 (11:50 +0200)
commite6a02fa65afeedc4cd3c9668c036b9c69ec15fed
treee1c7dc2d59d97c6b5ffe25746ac617d49a5b69b9
parent578ea8be55c66920b432fb00e7130603cc4f065d
MINOR: threads: add a "stuck" flag to the thread_info struct

This flag is constantly cleared by the scheduler and will be set by the
watchdog timer to detect stuck threads. It is also set by the "show
threads" command so that it is easy to spot if the situation has evolved
between two subsequent calls : if the first "show threads" shows no stuck
thread and the second one shows such a stuck thread, it indicates that
this thread didn't manage to make any forward progress since the previous
call, which is extremely suspicious.
doc/management.txt
include/common/hathreads.h
src/debug.c
src/task.c