Module: kamailio
Branch: 5.3
Commit: e9f20919f1e0b4a396d771255ce86a4e2f9a29c8
URL:
https://github.com/kamailio/kamailio/commit/e9f20919f1e0b4a396d771255ce86a4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/e9f20919f1e0b4a396d771255ce86a4…
Patch:
https://github.com/kamailio/kamailio/commit/e9f20919f1e0b4a396d771255ce86a4…
---
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;