Skip to content

Commit 6b26a4d

Browse files
authored
Merge pull request #2694 from jladd-mlnx/topic/odl_fix_2.x
orte/odls: Fix ORTE state machine for the non-zero exit case
2 parents fec8b5b + ebb5df9 commit 6b26a4d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

orte/mca/odls/base/odls_base_default_fns.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
* Copyright (c) 2013-2016 Intel, Inc. All rights reserved.
1818
* Copyright (c) 2014 Research Organization for Information Science
1919
* and Technology (RIST). All rights reserved.
20+
* Copyright (c) 2017 Mellanox Technologies Ltd. All rights reserved.
2021
* $COPYRIGHT$
2122
*
2223
* Additional copyrights may follow
@@ -1182,6 +1183,9 @@ void odls_base_default_wait_local_proc(orte_proc_t *proc, void* cbdata)
11821183
ORTE_NAME_PRINT(&proc->name),proc->exit_code));
11831184
if (WIFEXITED(proc->exit_code)) {
11841185
proc->exit_code = WEXITSTATUS(proc->exit_code);
1186+
if (0 != proc->exit_code) {
1187+
state = ORTE_PROC_STATE_TERM_NON_ZERO;
1188+
}
11851189
} else {
11861190
if (WIFSIGNALED(proc->exit_code)) {
11871191
state = ORTE_PROC_STATE_ABORTED_BY_SIG;

0 commit comments

Comments
 (0)