1
1

Ensure we terminate cleanly when we do not launch

This commit was SVN r21110.
Этот коммит содержится в:
Ralph Castain 2009-04-29 14:06:12 +00:00
родитель 36671eb962
Коммит e003e0447a

Просмотреть файл

@ -126,6 +126,7 @@ int orte_plm_base_setup_job(orte_job_t *jdata)
/* if we don't want to launch, now is the time to leave */
if (orte_do_not_launch) {
orte_never_launched = true;
ORTE_UPDATE_EXIT_STATUS(0);
orte_trigger_event(&orte_exit);
return ORTE_ERROR;
@ -141,6 +142,7 @@ int orte_plm_base_setup_job(orte_job_t *jdata)
orte_show_help("help-plm-base.txt", "stdin-target-out-of-range", true,
ORTE_VPID_PRINT(jdata->stdin_target),
ORTE_VPID_PRINT(jdata->num_procs));
orte_never_launched = true;
ORTE_UPDATE_EXIT_STATUS(ORTE_ERROR_DEFAULT_EXIT_CODE);
orte_trigger_event(&orte_exit);
return ORTE_ERROR;