Skip to content

Commit 2e918d3

Browse files
authored
Merge pull request #10644 from jjhursey/v41-fix-dnl
v4.1: Remove error message from --do-not-launch
2 parents 7e6aca1 + 888cb06 commit 2e918d3

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

orte/mca/errmgr/default_hnp/errmgr_default_hnp.c

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Copyright (c) 2011-2013 Los Alamos National Security, LLC.
1111
* All rights reserved.
1212
* Copyright (c) 2014-2018 Intel, Inc. All rights reserved.
13-
* Copyright (c) 2017 IBM Corporation. All rights reserved.
13+
* Copyright (c) 2017-2022 IBM Corporation. All rights reserved.
1414
* Copyright (c) 2018 Research Organization for Information Science
1515
* and Technology (RIST). All rights reserved.
1616
* $COPYRIGHT$
@@ -149,14 +149,16 @@ static void hnp_abort(int error_code, char *fmt, ...)
149149
orte_abnormal_term_ordered = true;
150150

151151
/* If there was a message, construct it */
152-
va_start(arglist, fmt);
153-
if (NULL != fmt) {
154-
vasprintf(&outmsg, fmt, arglist);
155-
}
156-
va_end(arglist);
152+
if (!orte_do_not_launch) {
153+
va_start(arglist, fmt);
154+
if (NULL != fmt) {
155+
vasprintf(&outmsg, fmt, arglist);
156+
}
157+
va_end(arglist);
157158

158-
/* use the show-help system to get the message out */
159-
orte_show_help("help-errmgr-base.txt", "simple-message", true, outmsg);
159+
/* use the show-help system to get the message out */
160+
orte_show_help("help-errmgr-base.txt", "simple-message", true, outmsg);
161+
}
160162

161163
/* this could have happened very early, so see if it happened
162164
* before we started anything - if so, we can just finalize */

0 commit comments

Comments
 (0)