|
10 | 10 | * Copyright (c) 2011-2013 Los Alamos National Security, LLC. |
11 | 11 | * All rights reserved. |
12 | 12 | * 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. |
14 | 14 | * Copyright (c) 2018 Research Organization for Information Science |
15 | 15 | * and Technology (RIST). All rights reserved. |
16 | 16 | * $COPYRIGHT$ |
@@ -149,14 +149,16 @@ static void hnp_abort(int error_code, char *fmt, ...) |
149 | 149 | orte_abnormal_term_ordered = true; |
150 | 150 |
|
151 | 151 | /* 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); |
157 | 158 |
|
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 | + } |
160 | 162 |
|
161 | 163 | /* this could have happened very early, so see if it happened |
162 | 164 | * before we started anything - if so, we can just finalize */ |
|
0 commit comments