src/server/daemon/configmanager.c

changeset 85
b62e77d8e80c
parent 77
f1cff81e425a
child 86
49bb6c8ceb2b
equal deleted inserted replaced
84:afd57ce39ec9 85:b62e77d8e80c
88 } 88 }
89 } 89 }
90 return 0; 90 return 0;
91 } 91 }
92 92
93 int cfgmgr_load_config() { 93 int cfgmgr_load_config(ServerConfiguration **set_cfg) {
94 int cfgreload = 0; 94 int cfgreload = 0;
95 95
96 /* check config files */ 96 /* check config files */
97 UcxMapIterator iter = ucx_map_iterator(config_files); 97 UcxMapIterator iter = ucx_map_iterator(config_files);
98 ConfigFile *f; 98 ConfigFile *f;
124 } else { 124 } else {
125 printf("no reconfig required!\n"); 125 printf("no reconfig required!\n");
126 config = current_config; 126 config = current_config;
127 } 127 }
128 128
129 *set_cfg = config;
129 ServerConfiguration *old_conf = NULL; 130 ServerConfiguration *old_conf = NULL;
130 if(current_config != config) { 131 if(current_config != config) {
131 old_conf = current_config; 132 old_conf = current_config;
132 } 133 }
133 current_config = config; 134 current_config = config;

mercurial