From f4703d4e6419f9e54619d1edfc567fe8fa9f7f03 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Fri, 28 Sep 2018 15:29:24 +0200 Subject: [PATCH] threadname: fix for netbsd --- pdns/threadname.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/threadname.cc b/pdns/threadname.cc index eaa47b7fcd..249248a623 100644 --- a/pdns/threadname.cc +++ b/pdns/threadname.cc @@ -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) { -- 2.47.2