Skip to content

Commit 2016646

Browse files
author
Ralph Castain
authored
Merge pull request #3676 from rhc54/topic/orted
Ensure the orted doesn't go into an infinite loop during force-terminate
2 parents 7002535 + 81ab79f commit 2016646

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

orte/mca/errmgr/default_orted/errmgr_default_orted.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ static void orted_abort(int error_code, char *fmt, ...)
138138
orte_timer_t *timer;
139139
int rc;
140140

141+
/* only do this once */
142+
if (orte_abnormal_term_ordered) {
143+
return;
144+
}
145+
146+
/* set the aborting flag */
147+
orte_abnormal_term_ordered = true;
148+
141149
/* If there was a message, construct it */
142150
va_start(arglist, fmt);
143151
if (NULL != fmt) {

0 commit comments

Comments
 (0)