优化退出信号传递流程

This commit is contained in:
2025-09-28 14:26:09 +08:00
parent a0ccc964bc
commit afe70e6d17
10 changed files with 48 additions and 7 deletions

View File

@ -49,6 +49,15 @@ int main()
//启动终端
pthread_join(network_id,NULL);
//等待网络管理器进程结束
logs *log = logsmanager->log;
while(log != NULL)
{
logs *buf = log;
if(log->next !=NULL)
log = log->next;
free(buf);
}
//释放日志内存
free(teml);
free(networkmanager);