Cleanup: remove ignored flags from poll events bitmasks
[lttng-tools.git] / src / bin / lttng-sessiond / notify-apps.cpp
index 1b83491d14b920686898a77a0f249bda42223520..ff70ac187dcaff606ee0e8e73b97c18d99e53a7b 100644 (file)
@@ -58,13 +58,12 @@ static void *thread_application_notification(void *data)
 
        /* Add notify pipe to the pollset. */
        ret = lttng_poll_add(&events, notifiers->apps_cmd_notify_pipe_read_fd,
-                       LPOLLIN | LPOLLERR | LPOLLHUP | LPOLLRDHUP);
+                       LPOLLIN | LPOLLRDHUP);
        if (ret < 0) {
                goto error;
        }
 
-       ret = lttng_poll_add(&events, thread_quit_pipe_fd,
-                       LPOLLIN | LPOLLERR);
+       ret = lttng_poll_add(&events, thread_quit_pipe_fd, LPOLLIN);
        if (ret < 0) {
                goto error;
        }
@@ -121,8 +120,7 @@ restart:
                                        }
                                        health_code_update();
 
-                                       ret = lttng_poll_add(&events, sock,
-                                                       LPOLLIN | LPOLLERR | LPOLLHUP | LPOLLRDHUP);
+                                       ret = lttng_poll_add(&events, sock, LPOLLIN | LPOLLRDHUP);
                                        if (ret < 0) {
                                                /*
                                                 * It's possible we've reached the max poll fd allowed.
This page took 0.023415 seconds and 4 git commands to generate.