Module: sip-router
Branch: master
Commit: 24731c59cd9dcb0d1c567821ffdfb1860d4def9c
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=24731c5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Jan 4 00:25:20 2011 +0100
matrix: don't do db init for rank==proc_init and tcp main
---
modules/matrix/matrix.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/matrix/matrix.c b/modules/matrix/matrix.c
index 3c921c3..67d117e 100644
--- a/modules/matrix/matrix.c
+++ b/modules/matrix/matrix.c
@@ -597,6 +597,8 @@ static int mod_init(void)
static int child_init(int rank)
{
+ if(rank==PROC_INIT || rank==PROC_TCP_MAIN)
+ return 0;
if (matrix_db_open() != 0) return -1;
return 0;
}