diff options
Diffstat (limited to 'spawn')
-rw-r--r-- | spawn/spawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spawn/spawn.c b/spawn/spawn.c index b7839ad68..3d62df796 100644 --- a/spawn/spawn.c +++ b/spawn/spawn.c @@ -215,7 +215,7 @@ int create_spawn_server(uv_loop_t *loop, uv_pipe_t *spawn_channel, uv_process_t stdio[1].flags = UV_INHERIT_FD; stdio[1].data.fd = 1 /* UV_STDOUT_FD */; stdio[2].flags = UV_INHERIT_FD; - stdio[2].data.fd = 2 /* UV_STDERR_FD */; + stdio[2].data.fd = nd_log_health_fd() /* UV_STDERR_FD */; ret = uv_spawn(loop, process, &options); /* execute the netdata binary again as the netdata user */ if (0 != ret) { |