[sr-dev] git:3.1: imc: keep db handle open for main process

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 1 12:38:54 CEST 2011


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Jun  1 12:36:09 2011 +0200

imc: keep db handle open for main process

- the module sync's back to database at shutdown
- dicovered based on an email by Ozren Lapcevic
(cherry picked from commit 3402cfd8461c6c94dfc601d9f40116bdbdf8e0a4)

---

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

diff --git a/modules_k/imc/imc.c b/modules_k/imc/imc.c
index ccbea01..a948f15 100644
--- a/modules_k/imc/imc.c
+++ b/modules_k/imc/imc.c
@@ -437,7 +437,7 @@ static int mod_init(void)
  */
 static int child_init(int rank)
 {	
-	if (rank==PROC_INIT || rank==PROC_MAIN || rank==PROC_TCP_MAIN)
+	if (rank==PROC_INIT || rank==PROC_TCP_MAIN)
 		return 0; /* do nothing for the main process */
 
 	if (imc_dbf.init==0)




More information about the sr-dev mailing list