MCPcopy Create free account
hub / github.com/acl-dev/acl / run_daemon

Method run_daemon

lib_acl_cpp/src/master/master_proc.cpp:21–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19static bool __has_called = false;
20
21void master_proc::run_daemon(int argc, char** argv)
22{
23#ifdef ACL_WINDOWS
24 logger_fatal("not support ACL_WINDOWS!");
25#else
26 // ÿ������ֻ����һ��ʵ��������
27 acl_assert(__has_called == false);
28 __has_called = true;
29 daemon_mode_ = true;
30
31 acl_single_server_main(argc, argv, service_main,
32 ACL_MASTER_SERVER_CTX, this,
33 ACL_MASTER_SERVER_ON_LISTEN, service_on_listen,
34 ACL_MASTER_SERVER_PRE_INIT, service_pre_jail,
35 ACL_MASTER_SERVER_POST_INIT, service_init,
36 ACL_MASTER_SERVER_PRE_EXIT, service_pre_exit,
37 ACL_MASTER_SERVER_EXIT, service_exit,
38 ACL_MASTER_SERVER_SIGHUP, service_on_sighup,
39 ACL_MASTER_SERVER_INT_TABLE, conf_.get_int_cfg(),
40 ACL_MASTER_SERVER_STR_TABLE, conf_.get_str_cfg(),
41 ACL_MASTER_SERVER_BOOL_TABLE, conf_.get_bool_cfg(),
42 ACL_MASTER_SERVER_INT64_TABLE, conf_.get_int64_cfg(),
43 0);
44#endif
45}
46
47const char* master_proc::get_conf_path() const
48{

Callers

nothing calls this directly

Calls 5

acl_single_server_mainFunction · 0.85
get_int_cfgMethod · 0.80
get_str_cfgMethod · 0.80
get_bool_cfgMethod · 0.80
get_int64_cfgMethod · 0.80

Tested by

no test coverage detected