[sr-dev] git:master:c3acb864: rtpproxy: comment about child init rank filtering
Daniel-Constantin Mierla
miconda at gmail.com
Fri Jul 8 13:49:39 CEST 2016
Module: kamailio
Branch: master
Commit: c3acb864688656ef57d5a0a5263556fcf67d09d4
URL: https://github.com/kamailio/kamailio/commit/c3acb864688656ef57d5a0a5263556fcf67d09d4
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-07-08T13:48:48+02:00
rtpproxy: comment about child init rank filtering
---
Modified: modules/rtpproxy/rtpproxy.c
---
Diff: https://github.com/kamailio/kamailio/commit/c3acb864688656ef57d5a0a5263556fcf67d09d4.diff
Patch: https://github.com/kamailio/kamailio/commit/c3acb864688656ef57d5a0a5263556fcf67d09d4.patch
---
diff --git a/modules/rtpproxy/rtpproxy.c b/modules/rtpproxy/rtpproxy.c
index a36d323..8e12bcc 100644
--- a/modules/rtpproxy/rtpproxy.c
+++ b/modules/rtpproxy/rtpproxy.c
@@ -862,6 +862,7 @@ child_init(int rank)
if(rtpp_set_list==NULL )
return 0;
+ /* do not init sockets for PROC_INIT and main process when fork=yes */
if(rank==PROC_INIT || (rank==PROC_MAIN && dont_fork==0)) {
return 0;
}
More information about the sr-dev
mailing list