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