1
1

Merge branch 'master' into topic/iof_hnp

Этот коммит содержится в:
Ralph Castain 2018-01-26 13:55:49 -08:00 коммит произвёл GitHub
родитель c166e26265 5190f4e4ec
Коммит e284a3e98b
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 17 добавлений и 6 удалений

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

@ -940,7 +940,6 @@ void orte_odls_base_default_launch_local(int fd, short sd, void *cbdata)
* to this place as our default directory * to this place as our default directory
*/ */
getcwd(basedir, sizeof(basedir)); getcwd(basedir, sizeof(basedir));
/* find the jobdat for this job */ /* find the jobdat for this job */
if (NULL == (jobdat = orte_get_job_data_object(job))) { if (NULL == (jobdat = orte_get_job_data_object(job))) {
ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND); ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND);
@ -1144,6 +1143,17 @@ void orte_odls_base_default_launch_local(int fd, short sd, void *cbdata)
opal_argv_free(argvptr); opal_argv_free(argvptr);
} }
if (ORTE_SUCCESS != rc) { if (ORTE_SUCCESS != rc) {
/* cycle through children to find those for this jobid */
for (idx=0; idx < orte_local_children->size; idx++) {
if (NULL == (child = (orte_proc_t*)opal_pointer_array_get_item(orte_local_children, idx))) {
continue;
}
if (OPAL_EQUAL == opal_dss.compare(&job, &(child->name.jobid), ORTE_JOBID) &&
j == (int)child->app_idx) {
child->exit_code = rc;
ORTE_ACTIVATE_PROC_STATE(&child->name, ORTE_PROC_STATE_FAILED_TO_LAUNCH);
}
}
goto GETOUT; goto GETOUT;
} }

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

@ -194,11 +194,6 @@ static void evhandler(int status,
} }
} }
/* we _always_ have to execute the evhandler callback or
* else the event progress engine will hang */
if (NULL != cbfunc) {
cbfunc(OPAL_SUCCESS, NULL, NULL, NULL, cbdata);
}
/* only terminate if this was our job - keep in mind that we /* only terminate if this was our job - keep in mind that we
* can get notifications of job termination prior to our spawn * can get notifications of job termination prior to our spawn
* having completed! */ * having completed! */
@ -206,6 +201,12 @@ static void evhandler(int status,
fired = true; fired = true;
active = false; active = false;
} }
/* we _always_ have to execute the evhandler callback or
* else the event progress engine will hang */
if (NULL != cbfunc) {
cbfunc(OPAL_SUCCESS, NULL, NULL, NULL, cbdata);
}
} }