Explorar o código

rtpproxy: comment about child init rank filtering

Daniel-Constantin Mierla %!s(int64=9) %!d(string=hai) anos
pai
achega
c3acb86468
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      modules/rtpproxy/rtpproxy.c

+ 1 - 0
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;
 	}