]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/threadname.cc
builder: avoid config change prompts on each pdns-recursor update
[thirdparty/pdns.git] / pdns / threadname.cc
index eaa47b7fcd3faea59cff67c128307084b2898cae..249248a62387ff54f65cb26862ef11be8bfd1650 100644 (file)
@@ -55,7 +55,7 @@ void setThreadName(const std::string& threadName) {
   retval = pthread_setname_np(threadName.c_str());
 #endif
 #ifdef HAVE_PTHREAD_SETNAME_NP_3
-  retval = pthread_setname_np(pthread_self(), threadname.c_str(), nullptr);
+  retval = pthread_setname_np(pthread_self(), threadName.c_str(), nullptr);
 #endif
 
   if (retval != 0) {