Module: sip-router
Branch: 3.1
Commit: 8c763b4f2565dba4f640ab22a83e101946fdbc4e
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8c763b4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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)