From: Peter van Dijk Date: Mon, 9 Sep 2024 14:04:00 +0000 (+0200) Subject: auth LUA: better thread names X-Git-Tag: rec-5.2.0-alpha1~89^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9efb060542d8dbdab9384f626acf312e0266c27c;p=thirdparty%2Fpdns.git auth LUA: better thread names --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index 6c33cf3d51..8f028b4da2 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -90,6 +90,8 @@ public: private: void checkURL(const CheckDesc& cd, const bool status, const bool first = false) { + setThreadName("pdns/lua-c-url"); + string remstring; try { int timeout = 2; @@ -138,6 +140,7 @@ private: } } void checkTCP(const CheckDesc& cd, const bool status, const bool first = false) { + setThreadName("pdns/lua-c-tcp"); try { int timeout = 2; if (cd.opts.count("timeout")) { @@ -168,6 +171,7 @@ private: } void checkThread() { + setThreadName("pdns/luaupcheck"); while (true) { std::chrono::system_clock::time_point checkStart = std::chrono::system_clock::now();