X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread.c;h=7bd65361a25a7b97063305ca8eec2e0b6551abbf;hb=491d15395b58df09f8a3e7ba7404eb1f46392b79;hp=e0937d8e58eb577d2f088968d7a16299fe5db4c8;hpb=8ada111f6d3ab40d1c33cf1a7b2546de9a47d1d5;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/notification-thread.c b/src/bin/lttng-sessiond/notification-thread.c index e0937d8e5..7bd65361a 100644 --- a/src/bin/lttng-sessiond/notification-thread.c +++ b/src/bin/lttng-sessiond/notification-thread.c @@ -68,7 +68,7 @@ * * - notification_trigger_clients_ht: * associates notification-emitting triggers to clients - * (struct notification_client_ht_node) subscribed to those + * (struct notification_client_list) subscribed to those * conditions. * The condition's hash and match functions are used directly since * all triggers in this hash table have the "notify" action. @@ -209,7 +209,7 @@ struct notification_thread_handle *notification_thread_handle_create( } /* FIXME Replace eventfd by a pipe to support older kernels. */ - handle->cmd_queue.event_fd = eventfd(0, EFD_CLOEXEC); + handle->cmd_queue.event_fd = eventfd(0, EFD_CLOEXEC | EFD_SEMAPHORE); if (handle->cmd_queue.event_fd < 0) { PERROR("eventfd notification command queue"); goto error;