Explorar o código

- updated all the child_init users to ignore or treat specially the
PROC_INIT rank

Andrei Pelinescu-Onciul %!s(int64=18) %!d(string=hai) anos
pai
achega
30b49d1717
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      modules/tls/tls_mod.c

+ 3 - 3
modules/tls/tls_mod.c

@@ -337,9 +337,9 @@ static int mod_child(int rank)
 {
 	if (tls_disable || (tls_cfg==0))
 		return 0;
-	/* fix tls config only from the main proc., when we know 
-	 * the exact process number */
-	if (rank == PROC_MAIN){
+	/* fix tls config only from the main proc/PROC_INIT., when we know 
+	 * the exact process number and before any other process starts*/
+	if (rank == PROC_INIT){
 		if (tls_cfg_file.s){
 			if (tls_fix_cfg(*tls_cfg, &srv_defaults, &cli_defaults) < 0) 
 				return -1;