Changeset 4212
- Timestamp:
- 03/27/09 13:02:56 (12 months ago)
- Location:
- mpich2/trunk/src/pm/hydra/launcher
- Files:
-
- 2 modified
-
mpiexec/utils.c (modified) (3 diffs)
-
utils/lchu.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mpich2/trunk/src/pm/hydra/launcher/mpiexec/utils.c
r4191 r4212 32 32 HYD_Status HYD_LCHI_get_parameters(char **t_argv) 33 33 { 34 int i ;34 int i, local_env_set; 35 35 char **argv = t_argv, *tmp; 36 36 char *env_name, *env_value, *str[4] = { NULL }, *progname = *argv; … … 311 311 handle.prop = !strcmp(tmp, "all") ? HYD_ENV_PROP_ALL : HYD_ENV_PROP_NONE; 312 312 313 /* If nothing is set for the global environment, set it to the default */314 if (handle.prop == HYD_ENV_PROP_UNSET)315 handle.prop = HYD_ENV_PROP_ALL;316 317 313 /* Make sure local executable is set */ 314 local_env_set = 0; 318 315 for (exec_info = handle.exec_info_list; exec_info; exec_info = exec_info->next) { 319 316 if (exec_info->exec[0] == NULL) … … 322 319 if (exec_info->exec_proc_count == 0) 323 320 exec_info->exec_proc_count = 1; 321 322 if (exec_info->prop != HYD_ENV_PROP_UNSET) 323 local_env_set = 1; 324 324 } 325 326 /* If no global or local environment is set, use the default */ 327 if ((handle.prop == HYD_ENV_PROP_UNSET) && (local_env_set == 0)) 328 handle.prop = HYD_ENV_PROP_ALL; 325 329 326 330 if (handle.proxy_port == -1) -
mpich2/trunk/src/pm/hydra/launcher/utils/lchu.c
r4191 r4212 128 128 HYDU_ERR_POP(status, "unable to add env to list\n"); 129 129 } 130 } 131 } 132 else if (handle.prop == HYD_ENV_PROP_UNSET) { 133 for (env = handle.user_env; env; env = env->next) { 134 status = HYDU_append_env_to_list(*env, &handle.prop_env); 135 HYDU_ERR_POP(status, "unable to add env to list\n"); 130 136 } 131 137 } … … 153 159 HYDU_ERR_POP(status, "unable to add env to list\n"); 154 160 } 161 } 162 } 163 else if (exec_info->prop == HYD_ENV_PROP_UNSET) { 164 for (env = exec_info->user_env; env; env = env->next) { 165 status = HYDU_append_env_to_list(*env, &exec_info->prop_env); 166 HYDU_ERR_POP(status, "unable to add env to list\n"); 155 167 } 156 168 }
