M2MConnectionHandlerPimpl::~M2MConnectionHandlerPimpl() { tr_debug("~M2MConnectionHandlerPimpl()"); stop_listening(); delete _security_impl; pal_destroy(); tr_debug("~M2MConnectionHandlerPimpl() - OUT"); }
int main(int argc, char **argv) { int ret; ASSERT0(putenv("TZ=UTC")); cmn_err(CE_INFO, "blahgd version %s", version_string); /* drop unneeded privs */ ret = drop_privs(); if (ret) goto err; jeffpc_init(&init_ops); init_math(true); init_pipe_subsys(); init_req_subsys(); init_post_subsys(); init_file_cache(); ret = config_load((argc >= 2) ? argv[1] : NULL); if (ret) goto err; ret = load_all_posts(); if (ret) goto err; handle_signals(); ret = start_helpers(); if (ret) goto err_helpers; ret = start_listening(); if (ret) goto err_helpers; accept_conns(); stop_listening(); stop_helpers(); free_all_posts(); uncache_all_files(); return 0; err_helpers: stop_helpers(); err: DBG("Failed to inintialize: %s", xstrerror(ret)); return ret; }
tcp_listener::~tcp_listener() { stop_listening(); }
uds_listener::~uds_listener() { stop_listening(); }