mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-20 22:01:49 -04:00
MINOR: debug: make ha_panic() report threads starting at 1
Internally they start at zero but everywhere (config, dumps) we show them starting at 1, so let's fix the confusion.
This commit is contained in:
parent
3710105945
commit
a9f9fc9e5b
1 changed files with 1 additions and 1 deletions
|
|
@ -141,7 +141,7 @@ static int cli_io_handler_show_threads(struct appctx *appctx)
|
|||
void ha_panic()
|
||||
{
|
||||
chunk_reset(&trash);
|
||||
chunk_appendf(&trash, "Thread %u is about to kill the process.\n", tid);
|
||||
chunk_appendf(&trash, "Thread %u is about to kill the process.\n", tid + 1);
|
||||
ha_thread_dump_all_to_trash();
|
||||
write(2, trash.area, trash.data);
|
||||
for (;;)
|
||||
|
|
|
|||
Loading…
Reference in a new issue