Skip to content

Commit 3e23380

Browse files
authored
Merge pull request #2675 from artpol84/orte/state/exit_1_fix
orte/odls: Fix ORTE state machine for the non-zero exit case
2 parents 67fce28 + 3eb6c98 commit 3e23380

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
@@ -1200,6 +1201,9 @@ void odls_base_default_wait_local_proc(orte_proc_t *proc, void* cbdata)
12001201
ORTE_NAME_PRINT(&proc->name),proc->exit_code));
12011202
if (WIFEXITED(proc->exit_code)) {
12021203
proc->exit_code = WEXITSTATUS(proc->exit_code);
1204+
if (0 != proc->exit_code) {
1205+
state = ORTE_PROC_STATE_TERM_NON_ZERO;
1206+
}
12031207
} else {
12041208
if (WIFSIGNALED(proc->exit_code)) {
12051209
state = ORTE_PROC_STATE_ABORTED_BY_SIG;

0 commit comments

Comments
 (0)