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.
Этот коммит содержится в:
Коммит
f9b15797df
@ -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);
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user