| 19 | static bool __has_called = false; |
| 20 | |
| 21 | void 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 | |
| 47 | const char* master_proc::get_conf_path() const |
| 48 | { |
nothing calls this directly
no test coverage detected