修复日志处理,优化磁盘io,优化退出流程

This commit is contained in:
2026-01-29 12:10:36 +08:00
parent 65115e1a74
commit ee596a654d
10 changed files with 183 additions and 51 deletions

View File

@ -139,7 +139,7 @@ int match_cmd(const Cmd* cmd_dic,char *cmd_buf)
}
int exce(const int command,ctx *all_ctx)
int exec(const int command,ctx *all_ctx)
{
switch (command)
@ -202,7 +202,7 @@ int interpret(int mod, ctx *all_ctx,Cmd *cmd_dic)
if(cmd_buf[len-1] == '\n')
cmd_buf[len-1] = '\0';
//执行命令
exce(match_cmd(cmd_dic, cmd_buf),all_ctx);
exec(match_cmd(cmd_dic, cmd_buf),all_ctx);
//释放所有堆内存
free(cmd_buf);