From a2d7dede737947d7c6afa20a88e1f0c64e0eb96c Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Thu, 10 Aug 2023 11:18:52 +0200 Subject: Merging upstream version 1.42.0. Signed-off-by: Daniel Baumann --- spawn/spawn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spawn/spawn.c') diff --git a/spawn/spawn.c b/spawn/spawn.c index a9359da04..b7839ad68 100644 --- a/spawn/spawn.c +++ b/spawn/spawn.c @@ -199,12 +199,12 @@ int create_spawn_server(uv_loop_t *loop, uv_pipe_t *spawn_channel, uv_process_t passwd = getpwuid(getuid()); user = (passwd && passwd->pw_name) ? passwd->pw_name : ""; - args[0] = exepath; + args[0] = netdata_exe_file; args[1] = SPAWN_SERVER_COMMAND_LINE_ARGUMENT; args[2] = NULL; memset(&options, 0, sizeof(options)); - options.file = exepath; + options.file = netdata_exe_file; options.args = args; options.exit_cb = NULL; //exit_cb; options.stdio = stdio; @@ -219,7 +219,7 @@ int create_spawn_server(uv_loop_t *loop, uv_pipe_t *spawn_channel, uv_process_t ret = uv_spawn(loop, process, &options); /* execute the netdata binary again as the netdata user */ if (0 != ret) { - netdata_log_error("uv_spawn (process: \"%s\") (user: %s) failed (%s).", exepath, user, uv_strerror(ret)); + netdata_log_error("uv_spawn (process: \"%s\") (user: %s) failed (%s).", netdata_exe_file, user, uv_strerror(ret)); fatal("Cannot start netdata without the spawn server."); } -- cgit v1.2.3