Przeglądaj źródła

modules/ims_registrar_pcscf: fix rank for forked process to get DB initialisation (pua) (reverted from commit 02059e32fde2008ed906fa8ff35d79762ac97412)

jaybeepee 9 lat temu
rodzic
commit
fe7f411753
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      modules/ims_registrar_pcscf/reg_mod.c

+ 2 - 1
modules/ims_registrar_pcscf/reg_mod.c

@@ -315,10 +315,11 @@ static void mod_destroy(void)
 
 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(1, "RegInfo Event Processor", 1);
+	    int pid = fork_process(PROC_SIPINIT, "RegInfo Event Processor", 1);
 	    if (pid < 0)
 		return -1; //error
 	    if (pid == 0) {