src/server/daemon/configmanager.c

changeset 571
0fa595aefd0f
parent 443
ef3c8a0e1fee
equal deleted inserted replaced
570:f95868a8ec37 571:0fa595aefd0f
85 current_config = mgr->cfg; 85 current_config = mgr->cfg;
86 86
87 return 0; 87 return 0;
88 } 88 }
89 89
90 int cfgmgr_shutdown(void) {
91 // TODO: this is not threadsafe!!!
92
93 CxIterator i = cxListIterator(current_config->listeners);
94 cx_foreach(HttpListener*, ls, i) {
95 http_listener_shutdown_acceptors(ls);
96 }
97 }
98
90 ServerConfiguration *cfgmgr_get_server_config() { 99 ServerConfiguration *cfgmgr_get_server_config() {
91 return current_config; 100 return current_config;
92 } 101 }
93 102
94 103

mercurial