From: Otto Moerbeek Date: Mon, 8 Sep 2025 09:47:17 +0000 (+0200) Subject: rec: some error paths do no create thread 0 so don't join it X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d856c8ddd8356b33e0d1404e40d7df1a0d8bcf7;p=thirdparty%2Fpdns.git rec: some error paths do no create thread 0 so don't join it Signed-off-by: Otto Moerbeek --- 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)