]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Join the worker thread in the unthreaded case as well, there is actually 1 thread... 8515/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 8 Nov 2019 14:58:36 +0000 (15:58 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 8 Nov 2019 14:58:36 +0000 (15:58 +0100)
the main thread in that case.

pdns/pdns_recursor.cc

index bb2f617639b67220f55b1650f2eaef2e05e70687..ecb5a4e734eec4423ecc0bcc2d7b8754c46b181c 100644 (file)
@@ -4279,6 +4279,8 @@ static int serviceMain(int argc, char*argv[])
     infos.isListener = true;
     infos.isWorker = true;
     recursorThread(currentThreadId++, "worker");
+    
+    handlerInfos.thread.join();
   }
   else {