Module: kamailio
Branch: 4.4
Commit: c4e3bbce01708b19fd1b96ef5ab59eac6b47e318
URL:
https://github.com/kamailio/kamailio/commit/c4e3bbce01708b19fd1b96ef5ab59ea…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-09-14T13:55:07+02:00
janssonrpc-c: set the cmd pipe for all child processes
(cherry picked from commit 875c8ed09917825b4d4cd4e3f04e2665d957104a)
---
Modified: modules/janssonrpc-c/janssonrpc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/c4e3bbce01708b19fd1b96ef5ab59ea…
Patch:
https://github.com/kamailio/kamailio/commit/c4e3bbce01708b19fd1b96ef5ab59ea…
---
diff --git a/modules/janssonrpc-c/janssonrpc_mod.c
b/modules/janssonrpc-c/janssonrpc_mod.c
index c69b843..b54bc0f 100644
--- a/modules/janssonrpc-c/janssonrpc_mod.c
+++ b/modules/janssonrpc-c/janssonrpc_mod.c
@@ -159,7 +159,7 @@ static int child_init(int rank)
{
int pid;
- if (rank>PROC_MAIN)
+ if (rank!=PROC_INIT)
cmd_pipe = pipe_fds[1];
if (rank!=PROC_MAIN)