]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth LUA: reset thread name after async runs
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 10 Sep 2024 08:13:00 +0000 (10:13 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Tue, 10 Sep 2024 08:13:00 +0000 (10:13 +0200)
pdns/lua-record.cc

index 8f028b4da27aa4f0b3e0e64d480727b81fff2c16..1f2344a881b5e06c70a8d8a6999dc28ca0fdc020 100644 (file)
@@ -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));
     }
   }