From 1d856c8ddd8356b33e0d1404e40d7df1a0d8bcf7 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 8 Sep 2025 11:47:17 +0200 Subject: [PATCH] rec: some error paths do no create thread 0 so don't join it Signed-off-by: Otto Moerbeek --- pdns/recursordist/rec-main.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pdns/recursordist/rec-main.hh b/pdns/recursordist/rec-main.hh index 49576ee7b..90f61f084 100644 --- a/pdns/recursordist/rec-main.hh +++ b/pdns/recursordist/rec-main.hh @@ -556,7 +556,9 @@ public: static void joinThread0() { - info(0).thread.join(); + if (!s_threadInfos.empty()) { + info(0).thread.join(); + } } static void resize(size_t size) -- 2.47.3