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

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


Module: kamailio
Branch: 5.3
Commit: e9f20919f1e0b4a396d771255ce86a4e2f9a29c8
URL: https://github.com/kamailio/kamailio/commit/e9f20919f1e0b4a396d771255ce86a4e2f9a29c8

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

dmq: use PROC_RPC rank to init the worker process

(cherry picked from commit f2a4fd419c27b99ce4ff6f93dc3f235d4f74a33c)

---

Modified: src/modules/dmq/dmq.c

---

Diff:  https://github.com/kamailio/kamailio/commit/e9f20919f1e0b4a396d771255ce86a4e2f9a29c8.diff
Patch: https://github.com/kamailio/kamailio/commit/e9f20919f1e0b4a396d771255ce86a4e2f9a29c8.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