Module: kamailio
Branch: 5.0
Commit: 6702903ee846590fd0759f71fa741af95150677d
URL:
https://github.com/kamailio/kamailio/commit/6702903ee846590fd0759f71fa741af…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-10-23T10:17:43+02:00
jsonrpcs: set rank PROC_RPC for fifo and dgram processes
(cherry picked from commit a2b862a74c77bc71238d9b8c9ef19ddb629c75ce)
---
Modified: src/modules/jsonrpcs/jsonrpcs_fifo.c
Modified: src/modules/jsonrpcs/jsonrpcs_sock.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6702903ee846590fd0759f71fa741af…
Patch:
https://github.com/kamailio/kamailio/commit/6702903ee846590fd0759f71fa741af…
---
diff --git a/src/modules/jsonrpcs/jsonrpcs_fifo.c b/src/modules/jsonrpcs/jsonrpcs_fifo.c
index 53d62662b0..85b65c43bc 100644
--- a/src/modules/jsonrpcs/jsonrpcs_fifo.c
+++ b/src/modules/jsonrpcs/jsonrpcs_fifo.c
@@ -550,7 +550,7 @@ int jsonrpc_fifo_child_init(int rank)
LM_ERR("invalid fifo file path\n");
}
- pid=fork_process(PROC_NOCHLDINIT, "JSONRPCS FIFO", 1);
+ pid=fork_process(PROC_RPC, "JSONRPCS FIFO", 1);
if (pid<0) {
return -1; /* error */
}
diff --git a/src/modules/jsonrpcs/jsonrpcs_sock.c b/src/modules/jsonrpcs/jsonrpcs_sock.c
index 3347959448..94a068b3f5 100644
--- a/src/modules/jsonrpcs/jsonrpcs_sock.c
+++ b/src/modules/jsonrpcs/jsonrpcs_sock.c
@@ -453,7 +453,7 @@ int jsonrpc_dgram_child_init(int rank)
return -1;
}
for(i=0; i<jsonrpc_dgram_workers; i++) {
- pid=fork_process(PROC_NOCHLDINIT, "JSONRPCS DATAGRAM", 1);
+ pid=fork_process(PROC_RPC, "JSONRPCS DATAGRAM", 1);
if (pid<0)
return -1; /* error */
if(pid==0) {