From b9423602b415efa6707545019b6b541ed1529947 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 31 Oct 2024 20:26:08 +0100 Subject: [PATCH] threads: include name in error message When a thread fails to spawn, include the thread name in the error message. --- src/tm-threads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tm-threads.c b/src/tm-threads.c index 07f9a9390d..87696f37f1 100644 --- a/src/tm-threads.c +++ b/src/tm-threads.c @@ -1683,7 +1683,7 @@ TmEcode TmThreadSpawn(ThreadVars *tv) int rc = pthread_create(&tv->t, &attr, tv->tm_func, (void *)tv); if (rc) { - FatalError("Unable to create thread with pthread_create(): retval %d: %s", rc, + FatalError("Unable to create thread %s with pthread_create(): retval %d: %s", tv->name, rc, strerror(errno)); } -- 2.47.2