X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread.cpp;h=320e639d0468bf917af7e3327c868c211e10a48d;hb=1524f98c04431d04e50796f83a9dd29184b3a8a4;hp=7d9f4ed12dd72bae638db763f757ee8ffa7021a0;hpb=8d5a3312b34841f1ecba2605acad3eaca79fd5e4;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/notification-thread.cpp b/src/bin/lttng-sessiond/notification-thread.cpp index 7d9f4ed12..320e639d0 100644 --- a/src/bin/lttng-sessiond/notification-thread.cpp +++ b/src/bin/lttng-sessiond/notification-thread.cpp @@ -292,28 +292,24 @@ int init_poll_set(struct lttng_poll_event *poll_set, goto end; } - ret = lttng_poll_add(poll_set, notification_channel_socket, - LPOLLIN | LPOLLERR | LPOLLHUP | LPOLLRDHUP); + ret = lttng_poll_add(poll_set, notification_channel_socket, LPOLLIN | LPOLLRDHUP); if (ret < 0) { ERR("Failed to add notification channel socket to pollset"); goto error; } - ret = lttng_poll_add(poll_set, handle->cmd_queue.event_fd, - LPOLLIN | LPOLLERR); + ret = lttng_poll_add(poll_set, handle->cmd_queue.event_fd, LPOLLIN); if (ret < 0) { ERR("Failed to add notification command queue event fd to pollset"); goto error; } ret = lttng_poll_add(poll_set, - handle->channel_monitoring_pipes.ust32_consumer, - LPOLLIN | LPOLLERR); + handle->channel_monitoring_pipes.ust32_consumer, LPOLLIN); if (ret < 0) { ERR("Failed to add ust-32 channel monitoring pipe fd to pollset"); goto error; } ret = lttng_poll_add(poll_set, - handle->channel_monitoring_pipes.ust64_consumer, - LPOLLIN | LPOLLERR); + handle->channel_monitoring_pipes.ust64_consumer, LPOLLIN); if (ret < 0) { ERR("Failed to add ust-64 channel monitoring pipe fd to pollset"); goto error; @@ -322,8 +318,7 @@ int init_poll_set(struct lttng_poll_event *poll_set, goto end; } ret = lttng_poll_add(poll_set, - handle->channel_monitoring_pipes.kernel_consumer, - LPOLLIN | LPOLLERR); + handle->channel_monitoring_pipes.kernel_consumer, LPOLLIN); if (ret < 0) { ERR("Failed to add kernel channel monitoring pipe fd to pollset"); goto error;