summaryrefslogtreecommitdiffstats
path: root/src/server
diff options
context:
space:
mode:
authorSimon Rettberg2023-06-14 11:04:17 +0200
committerSimon Rettberg2023-06-14 11:04:17 +0200
commitfd2906767361f901cbe0a7a529e933044c1cad7d (patch)
treea3d4f2db63557654d78a1a741a62c586bd6dc988 /src/server
parentgithub: Update 4.19 build env to Ubuntu 20.04 (diff)
downloaddnbd3-fd2906767361f901cbe0a7a529e933044c1cad7d.tar.gz
dnbd3-fd2906767361f901cbe0a7a529e933044c1cad7d.tar.xz
dnbd3-fd2906767361f901cbe0a7a529e933044c1cad7d.zip
[SERVER] Threadpool: Add active thread count to error message
Diffstat (limited to 'src/server')
-rw-r--r--src/server/threadpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/threadpool.c b/src/server/threadpool.c
index cf39d5c..a21bd0d 100644
--- a/src/server/threadpool.c
+++ b/src/server/threadpool.c
@@ -89,7 +89,7 @@ bool threadpool_run(void *(*startRoutine)(void *), void *arg, const char *name)
return false;
}
if ( 0 != thread_create( &(entry->thread), &threadAttrs, threadpool_worker, (void*)entry ) ) {
- logadd( LOG_WARNING, "Could not create new thread for thread pool\n" );
+ logadd( LOG_WARNING, "Could not create new thread for thread pool (%d active)\n", (int)activeThreads );
signal_close( entry->signal );
free( entry );
return false;