1
1

Cannot update the proc state prior to activating the state machine as some callback functions need to compare the prior proc state against the new one.

cmr=v1.8.2:reviewer=jsquyres

This commit was SVN r31949.
Этот коммит содержится в:
Ralph Castain 2014-06-04 03:40:08 +00:00
родитель b771388fa7
Коммит b2413a6b88

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

@ -312,7 +312,9 @@ void orte_plm_base_recv(int status, orte_process_name_t* sender,
ORTE_ERROR_LOG(ORTE_ERR_NOT_FOUND);
ORTE_FORCED_TERMINATE(ORTE_ERROR_DEFAULT_EXIT_CODE);
}
proc->state = state;
/* NEVER update the proc state before activating the state machine - let
* the state cbfunc update it as it may need to compare this
* state against the prior proc state */
proc->pid = pid;
proc->exit_code = exit_code;
ORTE_ACTIVATE_PROC_STATE(&name, state);