| 21 | } |
| 22 | |
| 23 | void master_fiber::run(int argc, char** argv) |
| 24 | { |
| 25 | // There's only one instance being running in a process. |
| 26 | acl_assert(has_called == false); |
| 27 | has_called = true; |
| 28 | |
| 29 | acl_fiber_server_main(argc, argv, service_on_accept, this, |
| 30 | ACL_MASTER_SERVER_PRE_INIT, service_pre_jail, |
| 31 | ACL_MASTER_SERVER_POST_INIT, service_init, |
| 32 | ACL_MASTER_SERVER_PRE_EXIT, service_pre_exit, |
| 33 | ACL_MASTER_SERVER_EXIT, service_exit, |
| 34 | ACL_MASTER_SERVER_ON_LISTEN, service_on_listen, |
| 35 | ACL_MASTER_SERVER_THREAD_INIT, thread_init, |
| 36 | ACL_MASTER_SERVER_THREAD_INIT_CTX, this, |
| 37 | ACL_MASTER_SERVER_THREAD_EXIT, thread_exit, |
| 38 | ACL_MASTER_SERVER_THREAD_EXIT_CTX, this, |
| 39 | ACL_MASTER_SERVER_SIGHUP, service_on_sighup, |
| 40 | ACL_MASTER_SERVER_BOOL_TABLE, conf_.get_bool_cfg(), |
| 41 | ACL_MASTER_SERVER_INT64_TABLE, conf_.get_int64_cfg(), |
| 42 | ACL_MASTER_SERVER_INT_TABLE, conf_.get_int_cfg(), |
| 43 | ACL_MASTER_SERVER_STR_TABLE, conf_.get_str_cfg(), |
| 44 | ACL_MASTER_SERVER_END); |
| 45 | } |
| 46 | |
| 47 | void master_fiber::run_daemon(int argc, char** argv) |
| 48 | { |
nothing calls this directly
no test coverage detected