1
1
This commit was SVN r22322.
Этот коммит содержится в:
Josh Hursey 2009-12-16 18:06:05 +00:00
родитель 897b7c0aa8
Коммит 646f90a90a

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

@ -1778,9 +1778,9 @@ static int snapc_full_local_get_vpids(void)
/* /*
* Otherwise update or populate the list * Otherwise update or populate the list
*/ */
for (item = opal_list_get_first(&orte_local_children); for (item = opal_list_get_first(&orte_local_children);
item != opal_list_get_end(&orte_local_children); item != opal_list_get_end(&orte_local_children);
item = opal_list_get_next(item)) { item = opal_list_get_next(item)) {
child = (orte_odls_child_t*)item; child = (orte_odls_child_t*)item;
/* if the list is empty or this child is not in the list then add it */ /* if the list is empty or this child is not in the list then add it */
@ -1790,9 +1790,12 @@ static int snapc_full_local_get_vpids(void)
opal_list_append(&snapc_local_vpids, &(vpid_snapshot->super.super)); opal_list_append(&snapc_local_vpids, &(vpid_snapshot->super.super));
} }
vpid_snapshot->process_pid = child->pid; /* Only update if the PID is -not- already set */
vpid_snapshot->super.process_name.jobid = child->name->jobid; if( 0 >= vpid_snapshot->process_pid ) {
vpid_snapshot->super.process_name.vpid = child->name->vpid; vpid_snapshot->process_pid = child->pid;
vpid_snapshot->super.process_name.jobid = child->name->jobid;
vpid_snapshot->super.process_name.vpid = child->name->vpid;
}
} }
return ORTE_SUCCESS; return ORTE_SUCCESS;