Fix: Revert of 814b4934e2604a419bcb8eec57c0450dbb47e2c3
[lttng-tools.git] / src / bin / lttng-sessiond / notification-thread-commands.cpp
index 568580403abc13039afa6f1b50b47457f83ff805..1de6ff58be3609d1f24690a055cfcfc756709cce 100644 (file)
@@ -33,7 +33,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 = lttng_write(lttng_pipe_get_writefd(handle->cmd_queue.event_pipe),
+       ret = lttng_write(handle->cmd_queue.event_fd,
                        &notification_counter, sizeof(notification_counter));
        if (ret != sizeof(notification_counter)) {
                PERROR("write to notification thread's queue event fd");
@@ -89,7 +89,7 @@ int run_command_no_wait(struct notification_thread_handle *handle,
        cds_list_add_tail(&new_cmd->cmd_list_node,
                        &handle->cmd_queue.list);
        /* Wake-up thread. */
-       ret = lttng_write(lttng_pipe_get_writefd(handle->cmd_queue.event_pipe),
+       ret = lttng_write(handle->cmd_queue.event_fd,
                        &notification_counter, sizeof(notification_counter));
        if (ret != sizeof(notification_counter)) {
                PERROR("write to notification thread's queue event fd");
This page took 0.024699 seconds and 4 git commands to generate.