* Fix an issue with initializing radix lists in views
}
g_list_free_1 (l);
g_free (cur);
+ break;
}
l = g_list_next (l);
}
kill (cur->pid, SIGUSR2);
cur->is_dying = 1;
}
- else {
+ else if (!cur->is_dying) {
msg_info ("main: %s process %d has been successfully started", get_process_type (cur->type), cur->pid);
}
l = g_list_next (l);
new->pool = pool;
new->from_hash = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal);
new->symbols_hash = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal);
+ new->ip_tree = radix_tree_create ();
+ new->client_ip_tree = radix_tree_create ();
- memory_pool_add_destructor (new->pool, (pool_destruct_func) g_hash_table_destroy, new->from_hash);
memory_pool_add_destructor (new->pool, (pool_destruct_func) g_hash_table_destroy, new->symbols_hash);
return new;