Fix: relayd: add LPOLLERR to events
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index 53f1b49ce14608e41aa1f82d21894358bb8dcfe3..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;
        }
@@ -2112,6 +2112,7 @@ int main(int argc, char **argv)
 
        /* Initialize communication library */
        lttcomm_init();
+       lttcomm_inet_init();
 
        /* Setup the dispatcher thread */
        ret = pthread_create(&dispatcher_thread, NULL,
This page took 0.025983 seconds and 4 git commands to generate.