From cde69470471bc671b4b5de27dabb23c0fef42afd Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 8 Nov 2019 15:58:36 +0100 Subject: [PATCH] Join the worker thread in the unthreaded case as well, there is actually 1 thread plus the main thread in that case. --- pdns/pdns_recursor.cc | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.47.2