From: Otto Moerbeek Date: Mon, 2 Dec 2024 08:19:52 +0000 (+0100) Subject: re: followup to 14796: also call stop hook in 1 thread case X-Git-Tag: rec-5.2.0-rc1~22^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F14909%2Fhead;p=thirdparty%2Fpdns.git re: followup to 14796: also call stop hook in 1 thread case --- diff --git a/pdns/recursordist/rec-main.cc b/pdns/recursordist/rec-main.cc index 9280c89672..380c77a229 100644 --- a/pdns/recursordist/rec-main.cc +++ b/pdns/recursordist/rec-main.cc @@ -356,7 +356,6 @@ int RecThreadInfo::runThreads(Logr::log_t log) ret = tInfo.exitCode; } } - runStartStopLua(false, log); } return ret; } @@ -2390,8 +2389,9 @@ static int serviceMain(Logr::log_t log) #endif /* NOD_ENABLED */ runStartStopLua(true, log); - - return RecThreadInfo::runThreads(log); + ret = RecThreadInfo::runThreads(log); + runStartStopLua(false, log); + return ret; } static void handlePipeRequest(int fileDesc, FDMultiplexer::funcparam_t& /* var */)