[sr-dev] git:master: core: init_child(1) for no-fork mode replaced with init_child( PROC_SIPINIT)

Daniel-Constantin Mierla miconda at gmail.com
Thu Sep 29 10:26:58 CEST 2011


Module: sip-router
Branch: master
Commit: ece30366e75ad5f057e911ce25f79caf9861cec6
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ece30366e75ad5f057e911ce25f79caf9861cec6

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Thu Sep 29 10:25:16 2011 +0200

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

- use the defined proc rank instead if its integer value

---

 main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/main.c b/main.c
index 45f0a6a..e2ad1f3 100644
--- a/main.c
+++ b/main.c
@@ -1390,7 +1390,7 @@ int main_loop()
 		 * 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");
 			goto error;
 		}




More information about the sr-dev mailing list