Module: kamailio
Branch: master
Commit: a2b862a74c77bc71238d9b8c9ef19ddb629c75ce
URL:
https://github.com/kamailio/kamailio/commit/a2b862a74c77bc71238d9b8c9ef19dd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-10-21T11:47:35+02:00
jsonrpcs: set rank PROC_RPC for fifo and dgram processes
---
Modified: src/modules/jsonrpcs/jsonrpcs_fifo.c
Modified: src/modules/jsonrpcs/jsonrpcs_sock.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a2b862a74c77bc71238d9b8c9ef19dd…
Patch:
https://github.com/kamailio/kamailio/commit/a2b862a74c77bc71238d9b8c9ef19dd…
---
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) {