fix some exit situations, that was badly done by SIGUSR1 handler

This commit is contained in:
laurent
2018-09-05 17:03:19 +02:00
parent c83fc1b544
commit abbffef015
13 changed files with 20 additions and 18 deletions
@@ -288,7 +288,7 @@ extern "C" {
void itti_terminate_tasks(task_id_t task_id) {
// Sends Terminate signals to all tasks.
itti_send_terminate_message (task_id);
pthread_exit (NULL);
usleep(100*1000); // Allow the tasks to receive the message before going returning to main thread
}
int itti_init(task_id_t task_max, thread_id_t thread_max, MessagesIds messages_id_max, const task_info_t *tasks_info,
@@ -302,8 +302,6 @@ char sv1[64];
}
int proccmd_exit(char *buf, int debug, telnet_printfunc_t prnt)
{
extern void exit_fun(const char* s);
if (debug > 0)
prnt("process module received %s\n",buf);