فهرست منبع

modules/ims_registrar_pcscf: fix rank for forked process to get DB initialisation (pua)

jaybeepee 9 سال پیش
والد
کامیت
02059e32fd
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      modules/ims_registrar_pcscf/reg_mod.c

+ 1 - 2
modules/ims_registrar_pcscf/reg_mod.c

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