From 414f4e97837f9709831da17135ef9e9580035be8 Mon Sep 17 00:00:00 2001 From: Ralph Castain Date: Wed, 17 Sep 2014 00:39:49 +0000 Subject: [PATCH] Try to provide a real hostname for the remote host to aid in debugging Refs trac:4908 This commit was SVN r32748. The following Trac tickets were found above: Ticket 4908 --> https://svn.open-mpi.org/trac/ompi/ticket/4908 --- orte/mca/oob/tcp/oob_tcp_connection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/orte/mca/oob/tcp/oob_tcp_connection.c b/orte/mca/oob/tcp/oob_tcp_connection.c index 05fbe6085e..f25674693e 100644 --- a/orte/mca/oob/tcp/oob_tcp_connection.c +++ b/orte/mca/oob/tcp/oob_tcp_connection.c @@ -255,6 +255,9 @@ void mca_oob_tcp_peer_try_connect(int fd, short args, void *cbdata) /* no address succeeded, so we cannot reach this peer */ peer->state = MCA_OOB_TCP_FAILED; host = orte_get_proc_hostname(&(peer->name)); + if (NULL == host) { + host = opal_net_get_hostname((struct sockaddr*)&(peer->active_addr->addr)); + } /* use an opal_output here instead of show_help as we may well * not be connected to the HNP at this point */ opal_output(orte_clean_output,