From c81009ff85f150544a4364b13b5f1516c0579e44 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 11 Nov 2019 12:18:02 +0100 Subject: [PATCH] Revert "Rec 8020 docs fix" --- pdns/pdns_recursor.cc | 10 ++-------- pdns/rec_channel.cc | 2 -- pdns/rec_channel.hh | 2 -- pdns/rec_channel_rec.cc | 11 +++++------ pdns/recursordist/docs/settings.rst | 6 +++--- 5 files changed, 10 insertions(+), 21 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index c6200a1e5f..d36625e4d9 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -4279,8 +4279,6 @@ static int serviceMain(int argc, char*argv[]) infos.isListener = true; infos.isWorker = true; recursorThread(currentThreadId++, "worker"); - - handlerInfos.thread.join(); } else { @@ -4315,9 +4313,7 @@ static int serviceMain(int argc, char*argv[]) infos.isHandler = true; infos.thread = std::thread(recursorThread, 0, "web+stat"); - for (auto & ti : s_threadInfos) { - ti.thread.join(); - } + s_threadInfos.at(0).thread.join(); } return 0; } @@ -4452,8 +4448,7 @@ try time_t carbonInterval=::arg().asNum("carbon-interval"); time_t luaMaintenanceInterval=::arg().asNum("lua-maintenance-interval"); counter.store(0); // used to periodically execute certain tasks - - while (!RecursorControlChannel::stop) { + for(;;) { while(MT->schedule(&g_now)); // MTasker letting the mthreads do their thing if(!(counter%500)) { @@ -4521,7 +4516,6 @@ try } } } - return 0; } catch(PDNSException &ae) { g_log< #include #include -#include #include #include "iputils.hh" #include "dnsname.hh" @@ -54,7 +53,6 @@ public: std::string recv(std::string* remote=0, unsigned int timeout=5); int d_fd; - static volatile sig_atomic_t stop; private: struct sockaddr_un d_local; }; diff --git a/pdns/rec_channel_rec.cc b/pdns/rec_channel_rec.cc index a294e62ac7..a86500ba12 100644 --- a/pdns/rec_channel_rec.cc +++ b/pdns/rec_channel_rec.cc @@ -1165,16 +1165,15 @@ void doExitGeneric(bool nicely) { g_log<