From: Willy Tarreau Date: Mon, 20 May 2019 15:45:35 +0000 (+0200) Subject: MINOR: debug: make ha_panic() report threads starting at 1 X-Git-Tag: v2.0-dev4~50 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9f9fc9e5b82524627547e3c4e95b720ab33ae60;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/debug.c b/src/debug.c index b4fcb65391..ecb55f5907 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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 (;;)