Module: kamailio
Branch: 4.4
Commit: 8a6c0e21f52af0efa39a3585d53e2f97b2cb90cf
URL:
https://github.com/kamailio/kamailio/commit/8a6c0e21f52af0efa39a3585d53e2f9…
Author: lazedo <luis.azedo(a)factorlusitano.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: 2017-02-07T15:57:36Z
kazoo: set proper ranking for consumer workers
(cherry picked from commit 744e898189fa84b5aa3d19958b348f9b99d48b41)
---
Modified: modules/kazoo/kazoo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8a6c0e21f52af0efa39a3585d53e2f9…
Patch:
https://github.com/kamailio/kamailio/commit/8a6c0e21f52af0efa39a3585d53e2f9…
---
diff --git a/modules/kazoo/kazoo.c b/modules/kazoo/kazoo.c
index 060242d..1401b24 100644
--- a/modules/kazoo/kazoo.c
+++ b/modules/kazoo/kazoo.c
@@ -389,7 +389,7 @@ static int mod_child_init(int rank)
*/
for(i=0; i < dbk_consumer_workers; i++) {
- pid=fork_process(i+1, "AMQP Consumer Worker", 1);
+ pid=fork_process(PROC_NOCHLDINIT, "AMQP Consumer Worker", 1);
if (pid<0)
return -1; /* error */
if(pid==0){