X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-events.cpp;fp=src%2Fbin%2Flttng-sessiond%2Fnotification-thread-events.cpp;h=909ccbff2cc1b6f36eba822957bdfec10a11a957;hb=8a880a84dcb8ee64cbc4a5e04cae6775b4f9babd;hp=da4f8a4b2ad515f601b90435fe696acde129beb0;hpb=f370852feddd5554281c3ce60d7fa3dfeb8869a1;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/notification-thread-events.cpp b/src/bin/lttng-sessiond/notification-thread-events.cpp index da4f8a4b2..909ccbff2 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.cpp +++ b/src/bin/lttng-sessiond/notification-thread-events.cpp @@ -3137,18 +3137,6 @@ int pop_cmd_queue(struct notification_thread_handle *handle, goto error_unlock; } - /* Simulate behaviour of EFD_SEMAPHORE for older kernels. */ - counter -= 1; - if (counter != 0) { - ret = lttng_write(handle->cmd_queue.event_fd, &counter, - sizeof(counter)); - if (ret != sizeof(counter)) { - PERROR("Failed to write back to event_fd for EFD_SEMAPHORE emulation"); - ret = -1; - goto error_unlock; - } - } - *cmd = cds_list_first_entry(&handle->cmd_queue.list, struct notification_thread_command, cmd_list_node); cds_list_del(&((*cmd)->cmd_list_node));