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

Function internal_fork_child_setup

pt.c:263–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263static int internal_fork_child_setup(const struct internal_fork_params *ifpp)
264{
265 init_log_level();
266
267 /* free the script if not needed */
268 if (!(ifpp->flags & OSS_PROC_NEEDS_SCRIPT) && sroutes) {
269 free_route_lists(sroutes);
270 sroutes = NULL;
271 }
272 return 0;
273}
274
275/* This function is to be called only by the main process!
276 * Returns, on success, the ID (non zero) in the process table of the

Callers

nothing calls this directly

Calls 2

init_log_levelFunction · 0.85
free_route_listsFunction · 0.85

Tested by

no test coverage detected