Fix: consumerd: HT init/teardown with program
[lttng-tools.git] / src / bin / lttng-consumerd / lttng-consumerd.c
index 8ddd5a372005490bb37f1ef8c01bc8045dabdbde..f64ce15331b84253f399989b89b3969a65d2c2cc 100644 (file)
@@ -318,7 +318,13 @@ int main(int argc, char **argv)
        }
 
        /* Init */
-       lttng_consumer_init();
+       if (lttng_consumer_init() < 0) {
+               goto error;
+       }
+
+       /* Init socket timeouts */
+       lttcomm_init();
+       lttcomm_inet_init();
 
        if (!getuid()) {
                /* Set limit for open files */
@@ -380,6 +386,9 @@ int main(int argc, char **argv)
        }
        ctx->type = opt_type;
 
+       /* Initialize communication library */
+       lttcomm_init();
+
        /* Create thread to manage channels */
        ret = pthread_create(&channel_thread, NULL, consumer_thread_channel_poll,
                        (void *) ctx);
This page took 0.024431 seconds and 4 git commands to generate.