From: Otto Moerbeek Date: Fri, 8 Nov 2019 14:58:36 +0000 (+0100) Subject: Join the worker thread in the unthreaded case as well, there is actually 1 thread... X-Git-Tag: dnsdist-1.4.0~12^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F8515%2Fhead;p=thirdparty%2Fpdns.git Join the worker thread in the unthreaded case as well, there is actually 1 thread plus the main thread in that case. --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index bb2f617639..ecb5a4e734 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -4279,6 +4279,8 @@ static int serviceMain(int argc, char*argv[]) infos.isListener = true; infos.isWorker = true; recursorThread(currentThreadId++, "worker"); + + handlerInfos.thread.join(); } else {