Module: sip-router Branch: master Commit: 3402cfd8461c6c94dfc601d9f40116bdbdf8e0a4 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3402cfd8...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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
---
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)