Commit 9e149aa8 authored by Cedric Roux's avatar Cedric Roux

- Fix semaphore value for write

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4329 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 ...@@ -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) #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 */ /* 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); lfds611_queue_enqueue(itti_desc.tasks[thread_id].message_queue, new);
} }
......
Markdown is supported
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