Commit 9e149aa8 authored by Cédric Roux's avatar Cédric Roux
Browse files

- Fix semaphore value for write

git-svn-id: 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 9eb72144
......@@ -262,10 +262,10 @@ int itti_send_msg_to_task(task_id_t task_id, instance_t instance, MessageDef *me
#if defined(ENABLE_EVENT_FD)
uint64_t message_ptr = 0;
uint64_t sem_counter = 1;
/* Call to write for an event fd must be of 8 bytes */
write(itti_desc.tasks[thread_id].task_event_fd, &message_ptr, sizeof(message_ptr));
write(itti_desc.tasks[thread_id].task_event_fd, &sem_counter, sizeof(sem_counter));
lfds611_queue_enqueue(itti_desc.tasks[thread_id].message_queue, new);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment