[sr-dev] git:master:875c8ed0: janssonrpc-c: set the cmd pipe for all child processes

Daniel-Constantin Mierla miconda at gmail.com
Mon Sep 12 17:37:40 CEST 2016


Module: kamailio
Branch: master
Commit: 875c8ed09917825b4d4cd4e3f04e2665d957104a
URL: https://github.com/kamailio/kamailio/commit/875c8ed09917825b4d4cd4e3f04e2665d957104a

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-09-12T17:36:49+02:00

janssonrpc-c: set the cmd pipe for all child processes

---

Modified: modules/janssonrpc-c/janssonrpc_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/875c8ed09917825b4d4cd4e3f04e2665d957104a.diff
Patch: https://github.com/kamailio/kamailio/commit/875c8ed09917825b4d4cd4e3f04e2665d957104a.patch

---

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)




More information about the sr-dev mailing list