From: Peter van Dijk Date: Tue, 10 Sep 2024 08:13:00 +0000 (+0200) Subject: auth LUA: reset thread name after async runs X-Git-Tag: rec-5.2.0-alpha1~89^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f2121926497c89c9071fff372e2d0601f066928;p=thirdparty%2Fpdns.git auth LUA: reset thread name after async runs --- diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc index 8f028b4da2..1f2344a881 100644 --- a/pdns/lua-record.cc +++ b/pdns/lua-record.cc @@ -204,6 +204,10 @@ private: statuses->erase(it); } } + + // set thread name again, in case std::async surprised us by doing work in this thread + setThreadName("pdns/luaupcheck"); + std::this_thread::sleep_until(checkStart + std::chrono::seconds(g_luaHealthChecksInterval)); } }