Browse code

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

67456745 authored on 28/09/2021 07:52:09
Showing 1 changed files
... ...
@@ -325,7 +325,7 @@ static int child_init(int rank)
325 325
 	LM_DBG("Initialization of module in child [%d] \n", rank);
326 326
 	if ((subscribe_to_reginfo == 1) && (rank == PROC_MAIN)) {
327 327
 		LM_DBG("Creating RegInfo Event Processor process\n");
328
-	    int pid = fork_process(PROC_SIPINIT, "RegInfo Event Processor", 1);
328
+	    int pid = fork_process(PROC_NOCHLDINIT, "RegInfo Event Processor", 1);
329 329
 	    if (pid < 0)
330 330
 			return -1; //error
331 331
 	    if (pid == 0) {