summaryrefslogtreecommitdiffstats
path: root/spawn/spawn.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-26 18:05:15 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2022-01-26 18:05:42 +0000
commit112b5b91647c3dea45cc1c9bc364df526c8012f1 (patch)
tree450af925135ec664c4310a1eb28b69481094ee2a /spawn/spawn.c
parentReleasing debian version 1.32.1-2. (diff)
downloadnetdata-112b5b91647c3dea45cc1c9bc364df526c8012f1.tar.xz
netdata-112b5b91647c3dea45cc1c9bc364df526c8012f1.zip
Merging upstream version 1.33.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'spawn/spawn.c')
-rw-r--r--spawn/spawn.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/spawn/spawn.c b/spawn/spawn.c
index 46853ecb9..051955e88 100644
--- a/spawn/spawn.c
+++ b/spawn/spawn.c
@@ -1,7 +1,6 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#include "spawn.h"
-#include "database/engine/rrdenginelib.h"
static uv_thread_t thread;
int spawn_thread_error;
@@ -240,15 +239,15 @@ void spawn_init(void)
init_spawn_cmd_queue();
- init_completion(&completion);
+ completion_init(&completion);
error = uv_thread_create(&thread, spawn_client, &completion);
if (error) {
error("uv_thread_create(): %s", uv_strerror(error));
goto after_error;
}
/* wait for spawn client thread to initialize */
- wait_for_completion(&completion);
- destroy_completion(&completion);
+ completion_wait_for(&completion);
+ completion_destroy(&completion);
uv_thread_set_name_np(thread, "DAEMON_SPAWN");
if (spawn_thread_error) {