[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serdev
Subject:    [sr-dev] git:master: core: init_child(1) for no-fork mode replaced
From:       Daniel-Constantin Mierla <miconda () gmail ! com>
Date:       2011-09-29 8:26:58
Message-ID: 20110929082658.2C16EEF804E () rimmer ! ryngle ! com
[Download RAW message or body]

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@gmail.com>
Committer: Daniel-Constantin Mierla <miconda@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;
 		}


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic