Use pipe instead of eventfd() for notification command queue
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-commands.c
index d9fdf01588465a3e826bbc53b3a0e6cb35d29705..cca667476b2efffd32ac520ba1e764198a538328 100644 (file)
@@ -44,7 +44,7 @@ int run_command_wait(struct notification_thread_handle *handle,
        cds_list_add_tail(&cmd->cmd_list_node,
                        &handle->cmd_queue.list);
        /* Wake-up thread. */
-       ret = write(handle->cmd_queue.event_fd,
+       ret = write(lttng_pipe_get_writefd(handle->cmd_queue.event_pipe),
                        &notification_counter, sizeof(notification_counter));
        if (ret < 0) {
                PERROR("write to notification thread's queue event fd");
This page took 0.024636 seconds and 5 git commands to generate.