瀏覽代碼

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

Andrei Pelinescu-Onciul 18 年之前
父節點
當前提交
30b49d1717
共有 1 個文件被更改,包括 3 次插入3 次删除
  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;