From 7d4cba9412f0a11bf27bb9f0af9fdb0e42b41cc9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 9 Feb 2021 14:24:34 +0100 Subject: Merging upstream version 1.29.1. Signed-off-by: Daniel Baumann --- collectors/cgroups.plugin/sys_fs_cgroup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'collectors') 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) { -- cgit v1.2.3