Port: Add OSX clock_gettime compat
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 0eb2db53815cbd2d0ff3f69f9218cef735c8b738..b0674612b54589de311bdfa0e76117226675223e 100644 (file)
@@ -2378,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
@@ -4291,7 +4291,6 @@ restart:
                        if (ret) {
                                PERROR("close");
                        }
-                       new_sock = -1;
                        continue;
                }
 
@@ -4320,7 +4319,6 @@ restart:
                if (ret) {
                        PERROR("close");
                }
-               new_sock = -1;
        }
 
 exit:
This page took 0.025781 seconds and 5 git commands to generate.