[sr-dev] git:master:f2a4fd41: dmq: use PROC_RPC rank to init the worker process

Daniel-Constantin Mierla miconda at gmail.com
Tue Feb 25 08:37:22 CET 2020


Module: kamailio
Branch: master
Commit: f2a4fd419c27b99ce4ff6f93dc3f235d4f74a33c
URL: https://github.com/kamailio/kamailio/commit/f2a4fd419c27b99ce4ff6f93dc3f235d4f74a33c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-02-25T08:36:40+01:00

dmq: use PROC_RPC rank to init the worker process

---

Modified: src/modules/dmq/dmq.c

---

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

---

diff --git a/src/modules/dmq/dmq.c b/src/modules/dmq/dmq.c
index ebfa021119..9414e94e84 100644
--- a/src/modules/dmq/dmq.c
+++ b/src/modules/dmq/dmq.c
@@ -280,7 +280,7 @@ static int child_init(int rank)
 		for(i = 0; i < num_workers; i++) {
 			init_worker(&workers[i]);
 			LM_DBG("starting worker process %d\n", i);
-			newpid = fork_process(PROC_NOCHLDINIT, "DMQ WORKER", 0);
+			newpid = fork_process(PROC_RPC, "DMQ WORKER", 0);
 			if(newpid < 0) {
 				LM_ERR("failed to form process\n");
 				return -1;




More information about the sr-dev mailing list