X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmain.c;h=b0674612b54589de311bdfa0e76117226675223e;hb=389fbf04b41e2002be44a1e3392bfade2f1deeef;hp=67df2fa2fbd0d5fd92545955327ba3bd81ba0f0d;hpb=c25613651ac7525a16b9877230a682fc1a64e036;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 67df2fa2f..b0674612b 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -1357,7 +1357,6 @@ restart: consumer_data->metadata_sock.lock = zmalloc(sizeof(pthread_mutex_t)); if (consumer_data->metadata_sock.lock == NULL) { PERROR("zmalloc pthread mutex"); - ret = -1; goto error; } pthread_mutex_init(consumer_data->metadata_sock.lock, NULL); @@ -2379,7 +2378,7 @@ static int spawn_consumer_thread(struct consumer_data *consumer_data) pthread_mutex_lock(&consumer_data->cond_mutex); /* Get time for sem_timedwait absolute timeout */ - clock_ret = clock_gettime(CLOCK_MONOTONIC, &timeout); + clock_ret = lttng_clock_gettime(CLOCK_MONOTONIC, &timeout); /* * Set the timeout for the condition timed wait even if the clock gettime * call fails since we might loop on that call and we want to avoid to @@ -4292,7 +4291,6 @@ restart: if (ret) { PERROR("close"); } - new_sock = -1; continue; } @@ -4321,7 +4319,6 @@ restart: if (ret) { PERROR("close"); } - new_sock = -1; } exit: