OCT 1. 关闭vcpe启动、退出向Agent发送通知消息

This commit is contained in:
huangxin 2023-03-15 09:36:16 +08:00
parent c7e85cd0a5
commit cd2005bdab
1 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,6 @@
#include "cmdline.h" #include "cmdline.h"
#include "task_manager.h" #include "task_manager.h"
#include "init.h" #include "init.h"
#include "inet_misc.h"
#include "config.h" #include "config.h"
#include "zlog_module.h" #include "zlog_module.h"
@ -103,12 +102,13 @@ int main(int argc, char **argv) {
pppoe_session_init(); pppoe_session_init();
#endif #endif
const char *pStrSetup = proto_create_new(create_app_process_status(1), 200); // const char *pStrSetup = proto_create_new(create_app_process_status(1), 200);
inet_http_post_async(config_get_agent_moniter_report_url(), pStrSetup, on_http_response_cb, (void *)pStrSetup); // inet_http_post_async(config_get_agent_moniter_report_url(), pStrSetup, on_http_response_cb, (void *)pStrSetup);
task_manager_run();
const char *pStrExit = proto_create_new(create_app_process_status(0), 200); task_manager_run();
inet_http_post_async(config_get_agent_moniter_report_url(), pStrSetup, on_http_response_cb, (void *)pStrExit); //
// const char *pStrExit = proto_create_new(create_app_process_status(0), 200);
// inet_http_post_async(config_get_agent_moniter_report_url(), pStrSetup, on_http_response_cb, (void *)pStrExit);
while (!is_system_cleanup()) { while (!is_system_cleanup()) {
sleep(1); sleep(1);