1
1

Merge pull request #4585 from rhc54/topic/signal

Ensure we don't send a kill signal to pid=0 as that hits ourselves and initiates an infinite loop.
Этот коммит содержится в:
Ralph Castain 2017-12-07 16:30:55 -08:00 коммит произвёл GitHub
родитель 0d1c58853b ee2a93cb2e
Коммит f9b15797df
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

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

@ -1291,6 +1291,10 @@ int orte_odls_base_default_signal_local_procs(const orte_process_name_t *proc, i
if (NULL == (child = (orte_proc_t*)opal_pointer_array_get_item(orte_local_children, i))) {
continue;
}
if (0 == child->pid || !ORTE_FLAG_TEST(child, ORTE_PROC_FLAG_ALIVE)) {
/* skip this one as the child isn't alive */
continue;
}
if (ORTE_SUCCESS != (rc = signal_local(child->pid, (int)signal))) {
ORTE_ERROR_LOG(rc);
}