优化退出流程,统一注册到on_exit(

This commit is contained in:
2025-09-29 16:07:11 +08:00
parent afe70e6d17
commit 8c52e4ba84
9 changed files with 163 additions and 41 deletions

View File

@ -1,9 +1,19 @@
#ifndef QUIT
#define QUIT
#ifndef QUIT_LIB
#define QUIT_LIB
#include "network/network.h"
void *quitall(void *self_p);
#include "tem/ctl.h"
#include "tools/log/log.h"
typedef struct all_resources
{
Ctl *tem;
netm *network;
log_manager *loger;
}alres;
void quit_all(int status,void *self_p);
int server_quit(netm *self);
#endif