[sr-dev] git:master:25ef591f: Correcting rank value passed to fork_process #2809

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 5 13:43:37 CEST 2021


Module: kamailio
Branch: master
Commit: 25ef591f5c160515b2b8c4e53036fccf8a9671bc
URL: https://github.com/kamailio/kamailio/commit/25ef591f5c160515b2b8c4e53036fccf8a9671bc

Author: 67456745 <erhan.sendag at i2i-systems.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2021-10-05T13:43:31+02:00

Correcting rank value passed to fork_process #2809
PROC_SIPINIT has a special meaning representing the first SIP worker

---

Modified: src/modules/ims_registrar_pcscf/ims_registrar_pcscf_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/25ef591f5c160515b2b8c4e53036fccf8a9671bc.diff
Patch: https://github.com/kamailio/kamailio/commit/25ef591f5c160515b2b8c4e53036fccf8a9671bc.patch

---

diff --git a/src/modules/ims_registrar_pcscf/ims_registrar_pcscf_mod.c b/src/modules/ims_registrar_pcscf/ims_registrar_pcscf_mod.c
index 8eb3c7b4a4..b5bb650098 100644
--- a/src/modules/ims_registrar_pcscf/ims_registrar_pcscf_mod.c
+++ b/src/modules/ims_registrar_pcscf/ims_registrar_pcscf_mod.c
@@ -325,7 +325,7 @@ static int child_init(int rank)
 	LM_DBG("Initialization of module in child [%d] \n", rank);
 	if ((subscribe_to_reginfo == 1) && (rank == PROC_MAIN)) {
 		LM_DBG("Creating RegInfo Event Processor process\n");
-	    int pid = fork_process(PROC_SIPINIT, "RegInfo Event Processor", 1);
+	    int pid = fork_process(PROC_NOCHLDINIT, "RegInfo Event Processor", 1);
 	    if (pid < 0)
 			return -1; //error
 	    if (pid == 0) {




More information about the sr-dev mailing list