| 16 | static bool has_called = false; |
| 17 | |
| 18 | void master_trigger::run_daemon(int argc, char** argv) |
| 19 | { |
| 20 | #ifdef ACL_WINDOWS |
| 21 | logger_fatal("not support ACL_WINDOWS!"); |
| 22 | #else |
| 23 | // ÿ������ֻ����һ��ʵ�������� |
| 24 | acl_assert(has_called == false); |
| 25 | has_called = true; |
| 26 | daemon_mode_ = true; |
| 27 | |
| 28 | acl_trigger_server_main(argc, argv, service_main, |
| 29 | ACL_MASTER_SERVER_CTX, this, |
| 30 | ACL_MASTER_SERVER_PRE_INIT, service_pre_jail, |
| 31 | ACL_MASTER_SERVER_POST_INIT, service_init, |
| 32 | ACL_MASTER_SERVER_EXIT, service_exit, |
| 33 | ACL_MASTER_SERVER_SIGHUP, service_on_sighup, |
| 34 | ACL_MASTER_SERVER_INT_TABLE, conf_.get_int_cfg(), |
| 35 | ACL_MASTER_SERVER_STR_TABLE, conf_.get_str_cfg(), |
| 36 | ACL_MASTER_SERVER_BOOL_TABLE, conf_.get_bool_cfg(), |
| 37 | ACL_MASTER_SERVER_INT64_TABLE, conf_.get_int64_cfg(), |
| 38 | 0); |
| 39 | #endif |
| 40 | } |
| 41 | |
| 42 | void master_trigger::run_alone(const char* path /* = NULL */, |
| 43 | int count /* = 1 */, int interval /* = 1 */) |
nothing calls this directly
no test coverage detected