Browse code

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

Andrei Pelinescu-Onciul authored on 07/06/2007 21:46:56
Showing 1 changed files
... ...
@@ -337,9 +337,9 @@ static int mod_child(int rank)
337 337
 {
338 338
 	if (tls_disable || (tls_cfg==0))
339 339
 		return 0;
340
-	/* fix tls config only from the main proc., when we know 
341
-	 * the exact process number */
342
-	if (rank == PROC_MAIN){
340
+	/* fix tls config only from the main proc/PROC_INIT., when we know 
341
+	 * the exact process number and before any other process starts*/
342
+	if (rank == PROC_INIT){
343 343
 		if (tls_cfg_file.s){
344 344
 			if (tls_fix_cfg(*tls_cfg, &srv_defaults, &cli_defaults) < 0) 
345 345
 				return -1;