X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fhealth-relayd.c;h=482be8eea92240beb047801eb291b99af3796067;hb=f8be11834749a7ba0b5f499b11c048d62d98a068;hp=9b4eefcd55f93e7ad6e9e5e018a398b76fc75f5a;hpb=28ab59d0baef178a8629ec9fb517ba75efb46ea8;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/health-relayd.c b/src/bin/lttng-relayd/health-relayd.c index 9b4eefcd5..482be8eea 100644 --- a/src/bin/lttng-relayd/health-relayd.c +++ b/src/bin/lttng-relayd/health-relayd.c @@ -155,7 +155,8 @@ static int setup_health_path(void) { int is_root, ret = 0; - char *home_path = NULL, *rundir = NULL, *relayd_path = NULL; + const char *home_path = NULL; + char *rundir = NULL, *relayd_path = NULL; ret = parse_health_env(); if (ret) { @@ -343,11 +344,6 @@ restart: revents = LTTNG_POLL_GETEV(&events, i); pollfd = LTTNG_POLL_GETFD(&events, i); - if (!revents) { - /* No activity for this FD (poll implementation). */ - continue; - } - /* Thread quit pipe has been closed. Killing thread. */ ret = check_health_quit_pipe(pollfd, revents); if (ret) {