Fix: relayd: add LPOLLERR to events
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index 3bef52b43068e8f8b2ac5ce4a5fbe9289b7fb9ca..18b662c780f7a986f29c4e977583a7020c4bf411 100644 (file)
@@ -381,7 +381,7 @@ int create_thread_poll_set(struct lttng_poll_event *events, int size)
        }
 
        /* Add quit pipe */
-       ret = lttng_poll_add(events, thread_quit_pipe[0], LPOLLIN);
+       ret = lttng_poll_add(events, thread_quit_pipe[0], LPOLLIN | LPOLLERR);
        if (ret < 0) {
                goto error;
        }
@@ -2110,6 +2110,10 @@ int main(int argc, char **argv)
        /* Set up max poll set size */
        lttng_poll_set_max_size();
 
+       /* Initialize communication library */
+       lttcomm_init();
+       lttcomm_inet_init();
+
        /* Setup the dispatcher thread */
        ret = pthread_create(&dispatcher_thread, NULL,
                        relay_thread_dispatcher, (void *) NULL);
This page took 0.025436 seconds and 4 git commands to generate.