From: Pieter Lexis Date: Thu, 27 Sep 2018 11:20:03 +0000 (+0200) Subject: ixfrdist: name threads X-Git-Tag: dnsdist-1.3.3~68^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec8d40b326a94b17b90a307afbf63bf25e20b3ca;p=thirdparty%2Fpdns.git ixfrdist: name threads --- 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<