From 5b388d28aef0346f1d51e39e0d3ebe3f440cdebe Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Thu, 26 Jul 2018 16:24:06 +0200 Subject: [PATCH] only load the Lua script in worker threads --- pdns/pdns_recursor.cc | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 854275af9..6d3c7ccae 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -3603,16 +3603,18 @@ try setupNODThread(); #endif /* NOD_ENABLED */ - try { - if(!::arg()["lua-dns-script"].empty()) { - t_pdl = std::make_shared(); - t_pdl->loadFile(::arg()["lua-dns-script"]); - g_log<(); + t_pdl->loadFile(::arg()["lua-dns-script"]); + g_log<