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

Function init_child

sr_module.c:710–736  ·  view source on GitHub ↗

* per-child initialization */

Source from the content-addressed store, hash-verified

708 * per-child initialization
709 */
710int init_child(int rank)
711{
712 char* type;
713 int rc;
714
715 type = 0;
716
717 switch(rank) {
718 case PROC_MAIN: type = "PROC_MAIN"; break;
719 case PROC_TIMER: type = "PROC_TIMER"; break;
720 case PROC_MODULE: type = "PROC_MODULE"; break;
721 case PROC_TCP_MAIN: type = "PROC_TCP_MAIN"; break;
722 }
723
724 if (!type) {
725 if (rank>0)
726 type = "CHILD";
727 else
728 type = "UNKNOWN";
729 }
730
731 rc = init_mod_child(modules, rank, type, 0);
732 ready_time = time(NULL);
733 ready_delay = ready_time - startup_time;
734
735 return rc;
736}
737
738
739

Callers 9

start_module_procsFunction · 0.85
main_loopFunction · 0.85
fork_dynamic_udp_processFunction · 0.85
udp_start_processesFunction · 0.85
tcp_main_serverFunction · 0.85
fork_dynamic_tcp_processFunction · 0.85
tcp_start_processesFunction · 0.85

Calls 1

init_mod_childFunction · 0.85

Tested by

no test coverage detected