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/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16094%2Fhead;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 49576ee7bb..90f61f0849 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)