Module: kamailio Branch: master Commit: c3acb864688656ef57d5a0a5263556fcf67d09d4 URL: https://github.com/kamailio/kamailio/commit/c3acb864688656ef57d5a0a5263556fc...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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/c3acb864688656ef57d5a0a5263556fc... Patch: https://github.com/kamailio/kamailio/commit/c3acb864688656ef57d5a0a5263556fc...
---
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; }