y_socket: add update cleanup

This commit is contained in:
2025-10-18 21:36:39 +02:00
parent 8d1f89f6b6
commit 492edebdee
+4
View File
@@ -252,6 +252,10 @@ void* y_socket_handler_(void *arg){
sock->go_on = 0;
pthread_mutex_unlock(sock->mut_go_on);
// kill_all_workers(argw);
// printf("debug: kill_all\n");
}else if(strncmp(buf+7,"cleanup",7)==0){
remove_all_ptr_type_list_y_ptr_HEADER_T(argH->m_ok_head_l_t);
remove_all_ptr_type_list_y_ptr_HEADER_T(argH->m_head_l_t);
// printf("debug: kill_all\n");
}else if(strncmp(buf+7,"file nodes",10)==0){
if(export_nodes_to_file(".file_nodes_name", nodes)==-1){