summaryrefslogtreecommitdiffstats
path: root/collectors
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-09 13:24:21 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2021-02-09 13:24:21 +0000
commite423c79a170d3b6c08bf370e2a348fd6cef239a8 (patch)
tree2b550e35b91db6e03ba32eae55c9fe6fd763fc77 /collectors
parentAdding upstream version 1.29.0. (diff)
downloadnetdata-e423c79a170d3b6c08bf370e2a348fd6cef239a8.tar.xz
netdata-e423c79a170d3b6c08bf370e2a348fd6cef239a8.zip
Adding upstream version 1.29.1.upstream/1.29.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'collectors')
-rw-r--r--collectors/cgroups.plugin/sys_fs_cgroup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/collectors/cgroups.plugin/sys_fs_cgroup.c b/collectors/cgroups.plugin/sys_fs_cgroup.c
index 705c51735..df1f5f21a 100644
--- a/collectors/cgroups.plugin/sys_fs_cgroup.c
+++ b/collectors/cgroups.plugin/sys_fs_cgroup.c
@@ -3937,9 +3937,10 @@ static void cgroup_main_cleanup(void *ptr) {
if (!discovery_thread.exited) {
info("stopping discovery thread worker");
- uv_mutex_unlock(&discovery_thread.mutex);
+ uv_mutex_lock(&discovery_thread.mutex);
discovery_thread.start_discovery = 1;
uv_cond_signal(&discovery_thread.cond_var);
+ uv_mutex_unlock(&discovery_thread.mutex);
}
while (!discovery_thread.exited && max > 0) {