diff -r 70bca6190669 -r f95868a8ec37 src/server/daemon/threadpools.c
--- a/src/server/daemon/threadpools.c	Sun Jan 26 23:09:43 2025 +0100
+++ b/src/server/daemon/threadpools.c	Wed Jan 29 20:40:19 2025 +0100
@@ -148,14 +148,14 @@
 }
 
 
-void shutdown_threadpools(void) {
+void shutdown_threadpools(int timeout) {
     log_ereport(LOG_INFORM, "shutdown threadpools");
     CxIterator i = cxMapIteratorValues(thread_pool_map);
     cx_foreach(threadpool_t*, tp, i) {
-        threadpool_shutdown(tp);
+        threadpool_shutdown(tp, timeout);
     }
     i = cxMapIteratorValues(io_pool_map);
     cx_foreach(threadpool_t*, tp, i) {
-        threadpool_shutdown(tp);
+        threadpool_shutdown(tp, timeout);
     }
 }