From ec8d40b326a94b17b90a307afbf63bf25e20b3ca Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 27 Sep 2018 13:20:03 +0200 Subject: [PATCH] ixfrdist: name threads --- pdns/ixfrdist.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pdns/ixfrdist.cc b/pdns/ixfrdist.cc index ec46456a08..cee9377b5b 100644 --- a/pdns/ixfrdist.cc +++ b/pdns/ixfrdist.cc @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include @@ -234,6 +235,11 @@ static void updateCurrentZoneInfo(const DNSName& domain, std::shared_ptr(threadName.c_str())); + if (retval != 0) { + g_log< lastCheck; // Initialize the serials we have @@ -768,6 +774,11 @@ static void handleTCPRequest(int fd, boost::any&) { /* Thread to handle TCP traffic */ static void tcpWorker(int tid) { + string threadName = "ixfrdist/tcpWor"; + auto retval = pthread_setname_np(pthread_self(), const_cast(threadName.c_str())); + if (retval != 0) { + g_log<