Skip to content

Commit a589132

Browse files
committed
Correctly report TCP connect errors.
Signed-off-by: George Bosilca <[email protected]>
1 parent 631a435 commit a589132

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

opal/mca/btl/tcp/btl_tcp_endpoint.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ static int mca_btl_tcp_endpoint_complete_connect(mca_btl_base_endpoint_t* btl_en
848848
opal_show_help("help-mpi-btl-tcp.txt", "client connect fail",
849849
true, opal_process_info.nodename,
850850
getpid(), msg,
851-
strerror(opal_socket_errno), opal_socket_errno);
851+
strerror(so_erro), so_erro);
852852
free(msg);
853853
mca_btl_tcp_endpoint_close(btl_endpoint);
854854
return OPAL_ERROR;

opal/mca/btl/tcp/help-mpi-btl-tcp.txt

-11
Original file line numberDiff line numberDiff line change
@@ -156,14 +156,3 @@ continue properly.
156156

157157
Local host: %s
158158
PID: %d
159-
#
160-
[client connect fail]
161-
WARNING: Open MPI failed to TCP connect to a peer MPI process via
162-
TCP. This should not happen.
163-
164-
Your Open MPI job may now fail.
165-
166-
Local host: %s
167-
PID: %d
168-
Message: %s
169-
Error: %s (%d)

0 commit comments

Comments
 (0)