1
1

Fix a bug noted by Tim P where we would report the incorrect app_context as "not found". If you gave us the command line:

mpirun -n 1 hostname : -n 1 bogus

we would erroneously report that hostname had not been found instead of bogus.

This commit was SVN r17886.
Этот коммит содержится в:
Ralph Castain 2008-03-19 21:13:13 +00:00
родитель 715b05d663
Коммит 67a2cc8a8e

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

@ -805,20 +805,30 @@ int orte_odls_base_default_launch_local(orte_jobid_t job,
ORTE_ERROR_NAME(rc)));
/* do not ERROR_LOG this failure - it will be reported
* elsewhere. The launch is going to fail - find at least one child
* in this job and mark it as failed-to-start
* elsewhere. The launch is going to fail. Since we could have
* multiple app_contexts, we need to ensure that we flag only
* the correct one that caused this operation to fail. We then have
* to flag all the other procs from the app_context as having "not failed"
* so we can report things out correctly
*/
/* cycle through children to find those for this jobid */
for (item = opal_list_get_first(&orte_odls_globals.children);
item != opal_list_get_end(&orte_odls_globals.children);
item = opal_list_get_next(item)) {
child = (orte_odls_child_t*)item;
if (OPAL_EQUAL == opal_dss.compare(&job, &(child->name->jobid), ORTE_JOBID)) {
if (i == child->app_idx) {
child->exit_code = rc;
} else {
child->state = ORTE_PROC_STATE_UNDEF;
child->exit_code = 0;
}
}
}
/* okay, now tell the HNP we couldn't do it */
goto CLEANUP;
}
}
}
}
/* okay, now let's launch our local procs using the provided fork_local fn */