From: Pieter Lexis Date: Thu, 27 Sep 2018 11:22:42 +0000 (+0200) Subject: dnstcpbench: name the worker threads X-Git-Tag: dnsdist-1.3.3~68^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a072889ae81a40c303ddadf11d7f0aff259a1d2;p=thirdparty%2Fpdns.git dnstcpbench: name the worker threads --- diff --git a/pdns/dnstcpbench.cc b/pdns/dnstcpbench.cc index 2c6e7fb42e..675731c701 100644 --- a/pdns/dnstcpbench.cc +++ b/pdns/dnstcpbench.cc @@ -174,6 +174,11 @@ vector g_queries; static void* worker(void*) { + string threadName = "dnstcpb/worker"; + auto retval = pthread_setname_np(pthread_self(), const_cast(threadName.c_str())); + if (retval != 0) { + cerr<<"Could not set thread name "<= g_queries.size())