MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / child_init

Function child_init

modules/pi_http/pi_http.c:208–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208static int child_init(int rank)
209{
210 int i;
211
212 LM_DBG("Child initialization\n");
213
214 for(i=0;i<ph_framework_data->ph_db_urls_size;i++){
215 LM_DBG("connecting to db[%d] [%s]\n",
216 i, ph_framework_data->ph_db_urls[i].db_url.s);
217
218 if (connect_http_db(ph_framework_data, i)) {
219 LM_ERR("failed to connect to database\n");
220 return -1;
221 }
222 }
223
224 return 0;
225}
226
227
228static void destroy(void)

Callers

nothing calls this directly

Calls 1

connect_http_dbFunction · 0.85

Tested by

no test coverage detected