Commit c560dac6 authored by winckel's avatar winckel

Added "itti_dump_exit" function to terminate dump activities when itti is exiting.

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4312 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent fef704c7
......@@ -471,6 +471,8 @@ void itti_wait_tasks_end(void) {
ITTI_DEBUG("Some threads are still running, force exit\n");
exit (0);
}
itti_dump_exit();
}
void itti_send_terminate_message(task_id_t task_id) {
......
......@@ -557,3 +557,12 @@ int itti_dump_init(const char * const messages_definition_xml, const char * cons
}
return 0;
}
void itti_dump_exit(void)
{
if (dump_file != NULL)
{
fclose(dump_file);
}
}
......@@ -36,4 +36,6 @@ int itti_dump_queue_message(message_number_t message_number, MessageDef *message
int itti_dump_init(const char * const messages_definition_xml, const char * const dump_file_name);
void itti_dump_exit(void);
#endif /* INTERTASK_INTERFACE_DUMP_H_ */
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