MINOR: cli/debug: add a thread dump function
authorWilly Tarreau <w@1wt.eu>
Thu, 16 May 2019 15:44:30 +0000 (17:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 16 May 2019 16:06:45 +0000 (18:06 +0200)
commit4e2b646d60298f6b93d604911fcfffb1eab6e3d8
treef7de699c6a40d67fddfc3c27400e6bfba54796bb
parentaa1e1be88f39827c8f03753a3a3aaf570f75c640
MINOR: cli/debug: add a thread dump function

The new function ha_thread_dump() will dump debugging info about all known
threads. The current thread will contain a bit more info. The long-term goal
is to make it possible to use it in signal handlers to improve the accuracy
of some dumps.

The function dumps its output into the trash so as it was trivial to add,
a new "show threads" command appeared on the CLI.
Makefile
doc/management.txt
include/common/debug.h
src/debug.c [new file with mode: 0644]