summaryrefslogtreecommitdiffstats
path: root/libnetdata
diff options
context:
space:
mode:
authorAndrew Moss <1043609+amoss@users.noreply.github.com>2020-06-23 18:06:09 +0200
committerGitHub <noreply@github.com>2020-06-23 18:06:09 +0200
commit641a45923789b738a3c75183b5b44b6d26964c86 (patch)
tree3206f03d0d1148e19ec83f8dd5937e8f863821e0 /libnetdata
parent93704281a5ae215f031c7c7c6b2c3706e9d097ca (diff)
Fix Coverity Defect CID 304732 (#9402)
Fix a race-hazard in the shutdown sequence that could deadlock the agent.
Diffstat (limited to 'libnetdata')
-rw-r--r--libnetdata/threads/threads.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libnetdata/threads/threads.c b/libnetdata/threads/threads.c
index 8a2e292439..d7636940f7 100644
--- a/libnetdata/threads/threads.c
+++ b/libnetdata/threads/threads.c
@@ -157,8 +157,6 @@ void uv_thread_set_name_np(uv_thread_t ut, const char* name) {
void os_thread_get_current_name_np(char threadname[NETDATA_THREAD_NAME_MAX + 1])
{
- int ret = 0;
-
threadname[0] = '\0';
#if defined(__FreeBSD__)
pthread_get_name_np(pthread_self(), threadname, NETDATA_THREAD_NAME_MAX + 1);