Module: sip-router
Branch: master
Commit: 0f376a2589b4a11a6829ca1bdf052cf6126851bd
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0f376a2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Jan 4 00:29:16 2011 +0100
pdb: skip child init for proc init and tcp main
---
modules/pdb/pdb.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/pdb/pdb.c b/modules/pdb/pdb.c
index 5ae47f3..b5ceb65 100644
--- a/modules/pdb/pdb.c
+++ b/modules/pdb/pdb.c
@@ -670,6 +670,8 @@ static int mod_init(void)
static int child_init (int rank)
{
+ if(rank==PROC_INIT || rank==PROC_TCP_MAIN)
+ return 0;
return mi_child_init();
}