[sr-dev] git:5.0:1dd66b7c: core: main - don't count wtimer secondary process separately

Daniel-Constantin Mierla miconda at gmail.com
Fri Sep 1 12:25:53 CEST 2017


Module: kamailio
Branch: 5.0
Commit: 1dd66b7ca9943ac1f172db2fe1b2f073736eb93b
URL: https://github.com/kamailio/kamailio/commit/1dd66b7ca9943ac1f172db2fe1b2f073736eb93b

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-09-01T12:08:13+02:00

core: main - don't count wtimer secondary process separately

- it is registered via sr_wtimer_init()
- fixes the extra empty entry in process table reported by Juha Heinanen

(cherry picked from commit ec15b23f25ba2502a661157ae69b4dc1db923f66)

---

Modified: src/main.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1dd66b7ca9943ac1f172db2fe1b2f073736eb93b.diff
Patch: https://github.com/kamailio/kamailio/commit/1dd66b7ca9943ac1f172db2fe1b2f073736eb93b.patch

---

diff --git a/src/main.c b/src/main.c
index 0aff706ffb..143238078d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1324,13 +1324,12 @@ int main_loop(void)
 			LM_CRIT("could not initialize shared configuration\n");
 			goto error;
 		}
-	
+
 		/* Register the children that will keep updating their
 		 * local configuration */
 		cfg_register_child(
 				1   /* main = udp listener */
 				+ 1 /* timer */
-				+ 1 /* wtimer */
 #ifdef USE_SLOW_TIMER
 				+ 1 /* slow timer */
 #endif
@@ -1433,7 +1432,6 @@ int main_loop(void)
 		 * will be added later.) */
 		cfg_register_child(
 				1   /* timer */
-				+ 1   /* wtimer */
 #ifdef USE_SLOW_TIMER
 				+ 1 /* slow timer */
 #endif
@@ -1824,7 +1822,6 @@ static int calc_proc_no(void)
 #ifdef USE_SLOW_TIMER
 		+ 1 /* slow timer process */
 #endif
-		+ 1 /* wtimer process */
 #ifdef USE_TCP
 		+((!tcp_disable)?( 1/* tcp main */ + tcp_listeners ):0)
 #endif




More information about the sr-dev mailing list