Browse Source

core: init_child(1) for no-fork mode replaced with init_child(PROC_SIPINIT)

- use the defined proc rank instead if its integer value
Daniel-Constantin Mierla 14 years ago
parent
commit
ece30366e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -1390,7 +1390,7 @@ int main_loop()
 		 * in fact we behave like a child, not like main process
 		 * in fact we behave like a child, not like main process
 		 */
 		 */
 
 
-		if (init_child(1) < 0) {
+		if (init_child(PROC_SIPINIT) < 0) {
 			LOG(L_ERR, "main_dontfork: init_child failed\n");
 			LOG(L_ERR, "main_dontfork: init_child failed\n");
 			goto error;
 			goto error;
 		}
 		}