OCT 1. 关闭vcpe启动、退出向Agent发送通知消息
This commit is contained in:
parent
c7e85cd0a5
commit
cd2005bdab
|
@ -7,7 +7,6 @@
|
|||
#include "cmdline.h"
|
||||
#include "task_manager.h"
|
||||
#include "init.h"
|
||||
#include "inet_misc.h"
|
||||
#include "config.h"
|
||||
#include "zlog_module.h"
|
||||
|
||||
|
@ -103,12 +102,13 @@ int main(int argc, char **argv) {
|
|||
pppoe_session_init();
|
||||
#endif
|
||||
|
||||
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);
|
||||
task_manager_run();
|
||||
// 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);
|
||||
|
||||
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);
|
||||
task_manager_run();
|
||||
//
|
||||
// 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()) {
|
||||
sleep(1);
|
||||
|
|
Loading…
Reference in New Issue