MINOR: debug: make "show threads" properly iterate over all threads
authorWilly Tarreau <w@1wt.eu>
Thu, 4 May 2023 17:07:56 +0000 (19:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 May 2023 17:15:50 +0000 (19:15 +0200)
commit009b5519e6a4b8ece180c7feda532f6c103d9fa2
treea5888591f5414f0bc9bd1ea0e526adc84e898e3b
parent880d1684a73915fd2663fefad9c8c300deab3be8
MINOR: debug: make "show threads" properly iterate over all threads

Previously it would re-dump all threads to the same trash if  the output
buffer was full, which it never was since the trash is of the same size.
Now it dumps one thread, copies it to the buffer and yields until it can
continue. Showing 256 threads works as expected.
src/debug.c