[SR-Dev] git:master: mi_xmlrpc: use PROC_NOCHLDINIT to fork process instead of 100

Daniel-Constantin Mierla miconda at gmail.com
Mon May 11 10:30:51 CEST 2009


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Mon May 11 11:29:56 2009 +0300

mi_xmlrpc: use PROC_NOCHLDINIT to fork process instead of 100

- do not run modules' child init, MI commands register own proc init
  funtion

---

 modules_k/mi_xmlrpc/mi_xmlrpc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/mi_xmlrpc/mi_xmlrpc.c b/modules_k/mi_xmlrpc/mi_xmlrpc.c
index 2b0e59d..d29cf04 100644
--- a/modules_k/mi_xmlrpc/mi_xmlrpc.c
+++ b/modules_k/mi_xmlrpc/mi_xmlrpc.c
@@ -141,7 +141,7 @@ static int child_init(int rank)
 {
 	int pid;
 	if (rank==PROC_MAIN) {
-		pid=fork_process(100, "MI XMLRPC", 1);
+		pid=fork_process(PROC_NOCHLDINIT, "MI XMLRPC", 1);
 		if (pid<0)
 			return -1; /* error */
 		if(pid==0){




More information about the sr-dev mailing list