[SR-Dev] git:master: dialog(k): refine change ffcf29e66d, we need to take care only of PROC_MAIN

Henning Westerholt henning.westerholt at 1und1.de
Thu May 7 15:28:36 CEST 2009


Module: sip-router
Branch: master
Commit: 7c79fc7a29d4a9509f69f7aca55a992c6b4cbff7
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=7c79fc7a29d4a9509f69f7aca55a992c6b4cbff7

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Thu May  7 15:26:38 2009 +0200

dialog(k): refine change ffcf29e66d, we need to take care only of PROC_MAIN

---

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

diff --git a/modules_k/dialog/dialog.c b/modules_k/dialog/dialog.c
index caae794..7a5d198 100644
--- a/modules_k/dialog/dialog.c
+++ b/modules_k/dialog/dialog.c
@@ -583,10 +583,9 @@ static int child_init(int rank)
 	 * for the rest of the processes will be the same as DB_MODE_NONE */
 	if (dlg_db_mode==DB_MODE_SHUTDOWN && rank!=PROC_MAIN)
 		dlg_db_mode = DB_MODE_NONE;
-	/* in DB_MODE_REALTIME and DB_MODE_DELAYED the PROC_MAIN or the ones
-	 * with negative rank will have no db connection */
+	/* in DB_MODE_REALTIME and DB_MODE_DELAYED the PROC_MAIN have no DB handle */
 	if ( (dlg_db_mode==DB_MODE_REALTIME || dlg_db_mode==DB_MODE_DELAYED) &&
-			(rank<0 || rank==PROC_MAIN))
+			rank==PROC_MAIN)
 		dlg_db_mode = DB_MODE_NONE;
 
 	return 0;




More information about the sr-dev mailing list