Cleanup a historical naming convention problem. Move the socket_errno definitions to the OPAL layer and change the name accordingly. This cleans up some interrelationship issues as well as removing a name confusion.
This commit was SVN r11186.
Этот коммит содержится в:
родитель
c1040c97c6
Коммит
d2912f03e0
@ -23,7 +23,7 @@
|
||||
|
||||
#include "ompi_config.h"
|
||||
|
||||
#include "orte/orte_socket_errno.h"
|
||||
#include "opal/opal_socket_errno.h"
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
@ -391,7 +391,7 @@ static int mca_btl_tcp_component_create_listen(void)
|
||||
/* create a listen socket for incoming connections */
|
||||
mca_btl_tcp_component.tcp_listen_sd = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if(mca_btl_tcp_component.tcp_listen_sd < 0) {
|
||||
BTL_ERROR(("socket() failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("socket() failed with errno=%d", opal_socket_errno));
|
||||
return OMPI_ERROR;
|
||||
}
|
||||
mca_btl_tcp_set_socket_options(mca_btl_tcp_component.tcp_listen_sd);
|
||||
@ -403,32 +403,32 @@ static int mca_btl_tcp_component_create_listen(void)
|
||||
inaddr.sin_port = 0;
|
||||
|
||||
if(bind(mca_btl_tcp_component.tcp_listen_sd, (struct sockaddr*)&inaddr, sizeof(inaddr)) < 0) {
|
||||
BTL_ERROR(("bind() failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("bind() failed with errno=%d", opal_socket_errno));
|
||||
return OMPI_ERROR;
|
||||
}
|
||||
|
||||
/* resolve system assignend port */
|
||||
addrlen = sizeof(struct sockaddr_in);
|
||||
if(getsockname(mca_btl_tcp_component.tcp_listen_sd, (struct sockaddr*)&inaddr, &addrlen) < 0) {
|
||||
BTL_ERROR(("getsockname() failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("getsockname() failed with errno=%d", opal_socket_errno));
|
||||
return OMPI_ERROR;
|
||||
}
|
||||
mca_btl_tcp_component.tcp_listen_port = inaddr.sin_port;
|
||||
|
||||
/* setup listen backlog to maximum allowed by kernel */
|
||||
if(listen(mca_btl_tcp_component.tcp_listen_sd, SOMAXCONN) < 0) {
|
||||
BTL_ERROR(("listen() failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("listen() failed with errno=%d", opal_socket_errno));
|
||||
return OMPI_ERROR;
|
||||
}
|
||||
|
||||
/* set socket up to be non-blocking, otherwise accept could block */
|
||||
if((flags = fcntl(mca_btl_tcp_component.tcp_listen_sd, F_GETFL, 0)) < 0) {
|
||||
BTL_ERROR(("fcntl(F_GETFL) failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("fcntl(F_GETFL) failed with errno=%d", opal_socket_errno));
|
||||
return OMPI_ERROR;
|
||||
} else {
|
||||
flags |= O_NONBLOCK;
|
||||
if(fcntl(mca_btl_tcp_component.tcp_listen_sd, F_SETFL, flags) < 0) {
|
||||
BTL_ERROR(("fcntl(F_SETFL) failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("fcntl(F_SETFL) failed with errno=%d", opal_socket_errno));
|
||||
return OMPI_ERROR;
|
||||
}
|
||||
}
|
||||
@ -556,10 +556,10 @@ static void mca_btl_tcp_component_accept(void)
|
||||
mca_btl_tcp_event_t *event;
|
||||
int sd = accept(mca_btl_tcp_component.tcp_listen_sd, (struct sockaddr*)&addr, &addrlen);
|
||||
if(sd < 0) {
|
||||
if(ompi_socket_errno == EINTR)
|
||||
if(opal_socket_errno == EINTR)
|
||||
continue;
|
||||
if(ompi_socket_errno != EAGAIN || ompi_socket_errno != EWOULDBLOCK)
|
||||
BTL_ERROR(("accept() failed with errno %d.", ompi_socket_errno));
|
||||
if(opal_socket_errno != EAGAIN || opal_socket_errno != EWOULDBLOCK)
|
||||
BTL_ERROR(("accept() failed with errno %d.", opal_socket_errno));
|
||||
return;
|
||||
}
|
||||
mca_btl_tcp_set_socket_options(sd);
|
||||
@ -603,11 +603,11 @@ static void mca_btl_tcp_component_recv_handler(int sd, short flags, void* user)
|
||||
|
||||
/* now set socket up to be non-blocking */
|
||||
if((flags = fcntl(sd, F_GETFL, 0)) < 0) {
|
||||
BTL_ERROR(("fcntl(F_GETFL) failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("fcntl(F_GETFL) failed with errno=%d", opal_socket_errno));
|
||||
} else {
|
||||
flags |= O_NONBLOCK;
|
||||
if(fcntl(sd, F_SETFL, flags) < 0) {
|
||||
BTL_ERROR(("fcntl(F_SETFL) failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("fcntl(F_SETFL) failed with errno=%d", opal_socket_errno));
|
||||
}
|
||||
}
|
||||
|
||||
@ -621,7 +621,7 @@ static void mca_btl_tcp_component_recv_handler(int sd, short flags, void* user)
|
||||
|
||||
/* lookup peer address */
|
||||
if(getpeername(sd, (struct sockaddr*)&addr, &addr_len) != 0) {
|
||||
BTL_ERROR(("getpeername() failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("getpeername() failed with errno=%d", opal_socket_errno));
|
||||
close(sd);
|
||||
return;
|
||||
}
|
||||
|
@ -28,7 +28,7 @@
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
#include "orte/orte_socket_errno.h"
|
||||
#include "opal/opal_socket_errno.h"
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
@ -142,13 +142,13 @@ static void mca_btl_tcp_endpoint_dump(mca_btl_base_endpoint_t* btl_endpoint, con
|
||||
sprintf(dst, "%s", inet_ntoa(inaddr.sin_addr));
|
||||
|
||||
if((flags = fcntl(btl_endpoint->endpoint_sd, F_GETFL, 0)) < 0) {
|
||||
BTL_ERROR(("fcntl(F_GETFL) failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("fcntl(F_GETFL) failed with errno=%d", opal_socket_errno));
|
||||
}
|
||||
|
||||
#if defined(SO_SNDBUF)
|
||||
obtlen = sizeof(sndbuf);
|
||||
if(getsockopt(btl_endpoint->endpoint_sd, SOL_SOCKET, SO_SNDBUF, (char *)&sndbuf, &obtlen) < 0) {
|
||||
BTL_ERROR(("SO_SNDBUF option: errno %d", ompi_socket_errno));
|
||||
BTL_ERROR(("SO_SNDBUF option: errno %d", opal_socket_errno));
|
||||
}
|
||||
#else
|
||||
sndbuf = -1;
|
||||
@ -156,7 +156,7 @@ static void mca_btl_tcp_endpoint_dump(mca_btl_base_endpoint_t* btl_endpoint, con
|
||||
#if defined(SO_RCVBUF)
|
||||
obtlen = sizeof(rcvbuf);
|
||||
if(getsockopt(btl_endpoint->endpoint_sd, SOL_SOCKET, SO_RCVBUF, (char *)&rcvbuf, &obtlen) < 0) {
|
||||
BTL_ERROR(("SO_RCVBUF option: errno %d", ompi_socket_errno));
|
||||
BTL_ERROR(("SO_RCVBUF option: errno %d", opal_socket_errno));
|
||||
}
|
||||
#else
|
||||
rcvbuf = -1;
|
||||
@ -164,7 +164,7 @@ static void mca_btl_tcp_endpoint_dump(mca_btl_base_endpoint_t* btl_endpoint, con
|
||||
#if defined(TCP_NODELAY)
|
||||
obtlen = sizeof(nodelay);
|
||||
if(getsockopt(btl_endpoint->endpoint_sd, IPPROTO_TCP, TCP_NODELAY, (char *)&nodelay, &obtlen) < 0) {
|
||||
BTL_ERROR(("TCP_NODELAY option: errno %d", ompi_socket_errno));
|
||||
BTL_ERROR(("TCP_NODELAY option: errno %d", opal_socket_errno));
|
||||
}
|
||||
#else
|
||||
nodelay = 0;
|
||||
@ -254,8 +254,8 @@ static int mca_btl_tcp_endpoint_send_blocking(mca_btl_base_endpoint_t* btl_endpo
|
||||
while(cnt < size) {
|
||||
int retval = send(btl_endpoint->endpoint_sd, (const char *)ptr+cnt, size-cnt, 0);
|
||||
if(retval < 0) {
|
||||
if(ompi_socket_errno != EINTR && ompi_socket_errno != EAGAIN && ompi_socket_errno != EWOULDBLOCK) {
|
||||
BTL_ERROR(("send() failed with errno=%d",ompi_socket_errno));
|
||||
if(opal_socket_errno != EINTR && opal_socket_errno != EAGAIN && opal_socket_errno != EWOULDBLOCK) {
|
||||
BTL_ERROR(("send() failed with errno=%d",opal_socket_errno));
|
||||
mca_btl_tcp_endpoint_close(btl_endpoint);
|
||||
return -1;
|
||||
}
|
||||
@ -411,8 +411,8 @@ static int mca_btl_tcp_endpoint_recv_blocking(mca_btl_base_endpoint_t* btl_endpo
|
||||
|
||||
/* socket is non-blocking so handle errors */
|
||||
if(retval < 0) {
|
||||
if(ompi_socket_errno != EINTR && ompi_socket_errno != EAGAIN && ompi_socket_errno != EWOULDBLOCK) {
|
||||
BTL_ERROR(("recv() failed with errno=%d",ompi_socket_errno));
|
||||
if(opal_socket_errno != EINTR && opal_socket_errno != EAGAIN && opal_socket_errno != EWOULDBLOCK) {
|
||||
BTL_ERROR(("recv() failed with errno=%d",opal_socket_errno));
|
||||
mca_btl_tcp_endpoint_close(btl_endpoint);
|
||||
return -1;
|
||||
}
|
||||
@ -464,19 +464,19 @@ void mca_btl_tcp_set_socket_options(int sd)
|
||||
#if defined(TCP_NODELAY)
|
||||
optval = 1;
|
||||
if(setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char *)&optval, sizeof(optval)) < 0) {
|
||||
BTL_ERROR(("setsockopt(TCP_NODELAY) failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("setsockopt(TCP_NODELAY) failed with errno=%d", opal_socket_errno));
|
||||
}
|
||||
#endif
|
||||
#if defined(SO_SNDBUF)
|
||||
if(mca_btl_tcp_component.tcp_sndbuf > 0 &&
|
||||
setsockopt(sd, SOL_SOCKET, SO_SNDBUF, (char *)&mca_btl_tcp_component.tcp_sndbuf, sizeof(int)) < 0) {
|
||||
BTL_ERROR(("setsockopt(SO_SNDBUF) failed with errno %d", ompi_socket_errno));
|
||||
BTL_ERROR(("setsockopt(SO_SNDBUF) failed with errno %d", opal_socket_errno));
|
||||
}
|
||||
#endif
|
||||
#if defined(SO_RCVBUF)
|
||||
if(mca_btl_tcp_component.tcp_rcvbuf > 0 &&
|
||||
setsockopt(sd, SOL_SOCKET, SO_RCVBUF, (char *)&mca_btl_tcp_component.tcp_rcvbuf, sizeof(int)) < 0) {
|
||||
BTL_ERROR(("setsockopt(SO_RCVBUF) failed with errno %d", ompi_socket_errno));
|
||||
BTL_ERROR(("setsockopt(SO_RCVBUF) failed with errno %d", opal_socket_errno));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
@ -510,11 +510,11 @@ static int mca_btl_tcp_endpoint_start_connect(mca_btl_base_endpoint_t* btl_endpo
|
||||
|
||||
/* setup the socket as non-blocking */
|
||||
if((flags = fcntl(btl_endpoint->endpoint_sd, F_GETFL, 0)) < 0) {
|
||||
BTL_ERROR(("fcntl(F_GETFL) failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("fcntl(F_GETFL) failed with errno=%d", opal_socket_errno));
|
||||
} else {
|
||||
flags |= O_NONBLOCK;
|
||||
if(fcntl(btl_endpoint->endpoint_sd, F_SETFL, flags) < 0)
|
||||
BTL_ERROR(("fcntl(F_SETFL) failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("fcntl(F_SETFL) failed with errno=%d", opal_socket_errno));
|
||||
}
|
||||
|
||||
/* start the connect - will likely fail with EINPROGRESS */
|
||||
@ -523,7 +523,7 @@ static int mca_btl_tcp_endpoint_start_connect(mca_btl_base_endpoint_t* btl_endpo
|
||||
endpoint_addr.sin_port = btl_endpoint->endpoint_addr->addr_port;
|
||||
if(connect(btl_endpoint->endpoint_sd, (struct sockaddr*)&endpoint_addr, sizeof(endpoint_addr)) < 0) {
|
||||
/* non-blocking so wait for completion */
|
||||
if(ompi_socket_errno == EINPROGRESS || ompi_socket_errno == EWOULDBLOCK) {
|
||||
if(opal_socket_errno == EINPROGRESS || opal_socket_errno == EWOULDBLOCK) {
|
||||
btl_endpoint->endpoint_state = MCA_BTL_TCP_CONNECTING;
|
||||
opal_event_add(&btl_endpoint->endpoint_send_event, 0);
|
||||
return OMPI_SUCCESS;
|
||||
@ -560,7 +560,7 @@ static void mca_btl_tcp_endpoint_complete_connect(mca_btl_base_endpoint_t* btl_e
|
||||
|
||||
/* check connect completion status */
|
||||
if(getsockopt(btl_endpoint->endpoint_sd, SOL_SOCKET, SO_ERROR, (char *)&so_error, &so_length) < 0) {
|
||||
BTL_ERROR(("getsockopt() failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("getsockopt() failed with errno=%d", opal_socket_errno));
|
||||
mca_btl_tcp_endpoint_close(btl_endpoint);
|
||||
return;
|
||||
}
|
||||
|
@ -33,7 +33,7 @@
|
||||
#include <unistd.h>
|
||||
#endif /* HAVE_UNISTD_H */
|
||||
|
||||
#include "orte/orte_socket_errno.h"
|
||||
#include "opal/opal_socket_errno.h"
|
||||
#include "ompi/mca/btl/base/btl_base_error.h"
|
||||
#include "btl_tcp_frag.h"
|
||||
#include "btl_tcp_endpoint.h"
|
||||
@ -103,7 +103,7 @@ bool mca_btl_tcp_frag_send(mca_btl_tcp_frag_t* frag, int sd)
|
||||
while(cnt < 0) {
|
||||
cnt = writev(sd, frag->iov_ptr, frag->iov_cnt);
|
||||
if(cnt < 0) {
|
||||
switch(ompi_socket_errno) {
|
||||
switch(opal_socket_errno) {
|
||||
case EINTR:
|
||||
continue;
|
||||
case EWOULDBLOCK:
|
||||
@ -112,10 +112,10 @@ bool mca_btl_tcp_frag_send(mca_btl_tcp_frag_t* frag, int sd)
|
||||
case EFAULT:
|
||||
BTL_ERROR(("writev error (%p, %d)\n\t%s(%d)\n",
|
||||
frag->iov_ptr[0].iov_base, frag->iov_ptr[0].iov_len,
|
||||
strerror(ompi_socket_errno), frag->iov_cnt));
|
||||
strerror(opal_socket_errno), frag->iov_cnt));
|
||||
default:
|
||||
{
|
||||
BTL_ERROR(("writev failed with errno=%d", ompi_socket_errno));
|
||||
BTL_ERROR(("writev failed with errno=%d", opal_socket_errno));
|
||||
mca_btl_tcp_endpoint_close(frag->endpoint);
|
||||
return false;
|
||||
}
|
||||
@ -185,7 +185,7 @@ bool mca_btl_tcp_frag_recv(mca_btl_tcp_frag_t* frag, int sd)
|
||||
while( cnt < 0 ) {
|
||||
cnt = readv(sd, frag->iov_ptr, num_vecs);
|
||||
if(cnt < 0) {
|
||||
switch(ompi_socket_errno) {
|
||||
switch(opal_socket_errno) {
|
||||
case EINTR:
|
||||
continue;
|
||||
case EWOULDBLOCK:
|
||||
@ -193,10 +193,10 @@ bool mca_btl_tcp_frag_recv(mca_btl_tcp_frag_t* frag, int sd)
|
||||
case EFAULT:
|
||||
opal_output( 0, "mca_btl_tcp_frag_send: writev error (%p, %d)\n\t%s(%d)\n",
|
||||
frag->iov_ptr[0].iov_base, frag->iov_ptr[0].iov_len,
|
||||
strerror(ompi_socket_errno), frag->iov_cnt );
|
||||
strerror(opal_socket_errno), frag->iov_cnt );
|
||||
default:
|
||||
opal_output(0, "mca_btl_tcp_frag_send: writev failed with errno=%d",
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
mca_btl_tcp_endpoint_close(btl_endpoint);
|
||||
return false;
|
||||
}
|
||||
|
@ -20,6 +20,7 @@
|
||||
|
||||
headers += \
|
||||
opal/constants.h \
|
||||
opal/opal_socket_errno.h \
|
||||
opal/types.h \
|
||||
opal/prefetch.h
|
||||
|
||||
|
@ -15,22 +15,22 @@
|
||||
*
|
||||
* $HEADER$
|
||||
*/
|
||||
#ifndef ORTE_GET_SOCKET_ERROR_H
|
||||
#define ORTE_GET_SOCKET_ERROR_H
|
||||
#ifndef OPAL_GET_SOCKET_ERROR_H
|
||||
#define OPAL_GET_SOCKET_ERROR_H
|
||||
|
||||
/* In windows, sockets return differnt error codes than the linux counter parts. Although,
|
||||
one can find there are some similarities in the naming, there are definite differences.
|
||||
ompi_socket_errno is defined to be errno under linux and ompi_get_socket_errno under
|
||||
opal_socket_errno is defined to be errno under linux and opal_get_socket_errno under
|
||||
windows to ensure that the code which uses errno does not have to be changed. In windows,
|
||||
the mapping is taken care of by ompi_get_socket_errno().
|
||||
the mapping is taken care of by opal_get_socket_errno().
|
||||
|
||||
ANYONE USING SOCKET FUNCTIONS' RETURN VALUE PLEASE USE ompi_socket_errno INSTEAD
|
||||
ANYONE USING SOCKET FUNCTIONS' RETURN VALUE PLEASE USE opal_socket_errno INSTEAD
|
||||
OF errno FOR COMPATIBILITY */
|
||||
|
||||
#include <errno.h>
|
||||
#include "orte/orte_constants.h"
|
||||
#include "opal/constants.h"
|
||||
#ifdef __WINDOWS__
|
||||
#define ompi_socket_errno ompi_get_socket_errno()
|
||||
#define opal_socket_errno opal_get_socket_errno()
|
||||
|
||||
#define EWOULDBLOCK WSAEWOULDBLOCK
|
||||
#define EINPROGRESS WSAEINPROGRESS
|
||||
@ -50,7 +50,7 @@
|
||||
#define ENETDOWN WSAENETDOWN
|
||||
#define ENETUNREACH WSAENETUNREACH
|
||||
#define ENETRESET WSAENETRESET
|
||||
#define ECONNABORTED WSAECONNABORTED
|
||||
#define ECONNABOPALD WSAECONNABOPALD
|
||||
#define ECONNRESET WSAECONNRESET
|
||||
#define ENOBUFS WSAENOBUFS
|
||||
#define EISCONN WSAEISCONN
|
||||
@ -70,13 +70,13 @@
|
||||
|
||||
|
||||
/*
|
||||
* pound define ompi_get_error() to be ompi_errno. so, in windows land
|
||||
* pound define opal_get_error() to be opal_errno. so, in windows land
|
||||
* this simply defaults to being errno
|
||||
*/
|
||||
|
||||
/* return directly from the case statments */
|
||||
|
||||
static __inline int ompi_get_socket_errno(void) {
|
||||
static __inline int opal_get_socket_errno(void) {
|
||||
int ret = WSAGetLastError();
|
||||
switch (ret) {
|
||||
case WSAEINTR: return EINTR;
|
||||
@ -103,7 +103,7 @@ static __inline int ompi_get_socket_errno(void) {
|
||||
case WSAENETDOWN: return ENETDOWN;
|
||||
case WSAENETUNREACH: return ENETUNREACH;
|
||||
case WSAENETRESET: return ENETRESET;
|
||||
case WSAECONNABORTED: return ECONNABORTED;
|
||||
case WSAECONNABOPALD: return ECONNABOPALD;
|
||||
case WSAECONNRESET: return ECONNRESET;
|
||||
case WSAENOBUFS: return ENOBUFS;
|
||||
case WSAEISCONN: return EISCONN;
|
||||
@ -122,12 +122,12 @@ static __inline int ompi_get_socket_errno(void) {
|
||||
case WSAEDQUOT: return EDQUOT;
|
||||
case WSAESTALE: return ESTALE;
|
||||
case WSAEREMOTE: return EREMOTE;
|
||||
default: printf("Feature not implemented: %d %s\n", __LINE__, __FILE__); return ORTE_ERROR;
|
||||
default: printf("Feature not implemented: %d %s\n", __LINE__, __FILE__); return OPAL_ERROR;
|
||||
};
|
||||
}
|
||||
|
||||
#else
|
||||
#define ompi_socket_errno errno
|
||||
#define opal_socket_errno errno
|
||||
#endif
|
||||
|
||||
#endif /* ORTE_GET_ERROR_H */
|
||||
#endif /* OPAL_GET_ERROR_H */
|
@ -21,8 +21,7 @@
|
||||
|
||||
headers += \
|
||||
orte/orte_constants.h \
|
||||
orte/orte_types.h \
|
||||
orte/orte_socket_errno.h
|
||||
orte/orte_types.h
|
||||
|
||||
nodist_headers += \
|
||||
orte/version.h
|
||||
|
@ -38,7 +38,7 @@
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
#include "orte/orte_socket_errno.h"
|
||||
#include "opal/opal_socket_errno.h"
|
||||
#include "opal/util/output.h"
|
||||
#include "opal/util/if.h"
|
||||
#include "orte/class/orte_proc_table.h"
|
||||
@ -258,10 +258,10 @@ static void mca_oob_tcp_accept(void)
|
||||
|
||||
sd = accept(mca_oob_tcp_component.tcp_listen_sd, (struct sockaddr*)&addr, &addrlen);
|
||||
if(sd < 0) {
|
||||
if(ompi_socket_errno == EINTR)
|
||||
if(opal_socket_errno == EINTR)
|
||||
continue;
|
||||
if(ompi_socket_errno != EAGAIN || ompi_socket_errno != EWOULDBLOCK)
|
||||
opal_output(0, "mca_oob_tcp_accept: accept() failed with errno %d.", ompi_socket_errno);
|
||||
if(opal_socket_errno != EAGAIN || opal_socket_errno != EWOULDBLOCK)
|
||||
opal_output(0, "mca_oob_tcp_accept: accept() failed with errno %d.", opal_socket_errno);
|
||||
return;
|
||||
}
|
||||
|
||||
@ -296,7 +296,7 @@ static int mca_oob_tcp_create_listen(void)
|
||||
/* create a listen socket for incoming connections */
|
||||
mca_oob_tcp_component.tcp_listen_sd = socket(AF_INET, SOCK_STREAM, 0);
|
||||
if(mca_oob_tcp_component.tcp_listen_sd < 0) {
|
||||
opal_output(0,"mca_oob_tcp_component_init: socket() failed with errno=%d", ompi_socket_errno);
|
||||
opal_output(0,"mca_oob_tcp_component_init: socket() failed with errno=%d", opal_socket_errno);
|
||||
return ORTE_ERROR;
|
||||
}
|
||||
|
||||
@ -310,32 +310,32 @@ static int mca_oob_tcp_create_listen(void)
|
||||
inaddr.sin_port = 0;
|
||||
|
||||
if(bind(mca_oob_tcp_component.tcp_listen_sd, (struct sockaddr*)&inaddr, sizeof(inaddr)) < 0) {
|
||||
opal_output(0,"mca_oob_tcp_create_listen: bind() failed with errno=%d", ompi_socket_errno);
|
||||
opal_output(0,"mca_oob_tcp_create_listen: bind() failed with errno=%d", opal_socket_errno);
|
||||
return ORTE_ERROR;
|
||||
}
|
||||
|
||||
/* resolve system assigned port */
|
||||
addrlen = sizeof(struct sockaddr_in);
|
||||
if(getsockname(mca_oob_tcp_component.tcp_listen_sd, (struct sockaddr*)&inaddr, &addrlen) < 0) {
|
||||
opal_output(0, "mca_oob_tcp_create_listen: getsockname() failed with errno=%d", ompi_socket_errno);
|
||||
opal_output(0, "mca_oob_tcp_create_listen: getsockname() failed with errno=%d", opal_socket_errno);
|
||||
return ORTE_ERROR;
|
||||
}
|
||||
mca_oob_tcp_component.tcp_listen_port = inaddr.sin_port;
|
||||
|
||||
/* setup listen backlog to maximum allowed by kernel */
|
||||
if(listen(mca_oob_tcp_component.tcp_listen_sd, SOMAXCONN) < 0) {
|
||||
opal_output(0, "mca_oob_tcp_component_init: listen() failed with errno=%d", ompi_socket_errno);
|
||||
opal_output(0, "mca_oob_tcp_component_init: listen() failed with errno=%d", opal_socket_errno);
|
||||
return ORTE_ERROR;
|
||||
}
|
||||
|
||||
/* set socket up to be non-blocking, otherwise accept could block */
|
||||
if((flags = fcntl(mca_oob_tcp_component.tcp_listen_sd, F_GETFL, 0)) < 0) {
|
||||
opal_output(0, "mca_oob_tcp_component_init: fcntl(F_GETFL) failed with errno=%d", ompi_socket_errno);
|
||||
opal_output(0, "mca_oob_tcp_component_init: fcntl(F_GETFL) failed with errno=%d", opal_socket_errno);
|
||||
return ORTE_ERROR;
|
||||
} else {
|
||||
flags |= O_NONBLOCK;
|
||||
if(fcntl(mca_oob_tcp_component.tcp_listen_sd, F_SETFL, flags) < 0) {
|
||||
opal_output(0, "mca_oob_tcp_component_init: fcntl(F_SETFL) failed with errno=%d", ompi_socket_errno);
|
||||
opal_output(0, "mca_oob_tcp_component_init: fcntl(F_SETFL) failed with errno=%d", opal_socket_errno);
|
||||
return ORTE_ERROR;
|
||||
}
|
||||
}
|
||||
@ -368,11 +368,11 @@ static void mca_oob_tcp_recv_probe(int sd, mca_oob_tcp_hdr_t* hdr)
|
||||
while(cnt < sizeof(mca_oob_tcp_hdr_t)) {
|
||||
int retval = send(sd, (char *)ptr+cnt, sizeof(mca_oob_tcp_hdr_t)-cnt, 0);
|
||||
if(retval < 0) {
|
||||
if(ompi_socket_errno != EINTR && ompi_socket_errno != EAGAIN && ompi_socket_errno != EWOULDBLOCK) {
|
||||
if(opal_socket_errno != EINTR && opal_socket_errno != EAGAIN && opal_socket_errno != EWOULDBLOCK) {
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_peer_recv_probe: send() failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(hdr->msg_src)),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
close(sd);
|
||||
return;
|
||||
}
|
||||
@ -395,12 +395,12 @@ static void mca_oob_tcp_recv_connect(int sd, mca_oob_tcp_hdr_t* hdr)
|
||||
/* now set socket up to be non-blocking */
|
||||
if((flags = fcntl(sd, F_GETFL, 0)) < 0) {
|
||||
opal_output(0, "[%lu,%lu,%lu] mca_oob_tcp_recv_handler: fcntl(F_GETFL) failed with errno=%d",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name), ompi_socket_errno);
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name), opal_socket_errno);
|
||||
} else {
|
||||
flags |= O_NONBLOCK;
|
||||
if(fcntl(sd, F_SETFL, flags) < 0) {
|
||||
opal_output(0, "[%lu,%lu,%lu] mca_oob_tcp_recv_handler: fcntl(F_SETFL) failed with errno=%d",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name), ompi_socket_errno);
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name), opal_socket_errno);
|
||||
}
|
||||
}
|
||||
|
||||
@ -475,9 +475,9 @@ static void mca_oob_tcp_recv_handler(int sd, short flags, void* user)
|
||||
close(sd);
|
||||
return;
|
||||
}
|
||||
if(ompi_socket_errno != EINTR) {
|
||||
if(opal_socket_errno != EINTR) {
|
||||
opal_output(0, "[%lu,%lu,%lu] mca_oob_tcp_recv_handler: recv() failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name), ompi_socket_errno);
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name), opal_socket_errno);
|
||||
close(sd);
|
||||
return;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@
|
||||
*/
|
||||
|
||||
#include "orte_config.h"
|
||||
#include "orte/orte_socket_errno.h"
|
||||
#include "opal/opal_socket_errno.h"
|
||||
|
||||
#include "orte/class/orte_proc_table.h"
|
||||
#include "orte/orte_constants.h"
|
||||
@ -233,19 +233,19 @@ bool mca_oob_tcp_msg_send_handler(mca_oob_tcp_msg_t* msg, struct mca_oob_tcp_pee
|
||||
while(1) {
|
||||
rc = writev(peer->peer_sd, msg->msg_rwptr, msg->msg_rwnum);
|
||||
if(rc < 0) {
|
||||
if(ompi_socket_errno == EINTR)
|
||||
if(opal_socket_errno == EINTR)
|
||||
continue;
|
||||
/* In windows, many of the socket functions return an EWOULDBLOCK instead of \
|
||||
things like EAGAIN, EINPROGRESS, etc. It has been verified that this will \
|
||||
not conflict with other error codes that are returned by these functions \
|
||||
under UNIX/Linux environments */
|
||||
else if (ompi_socket_errno == EAGAIN || ompi_socket_errno == EWOULDBLOCK)
|
||||
else if (opal_socket_errno == EAGAIN || opal_socket_errno == EWOULDBLOCK)
|
||||
return false;
|
||||
else {
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_msg_send_handler: writev failed with errno=%d",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
mca_oob_tcp_peer_close(peer);
|
||||
msg->msg_rc = ORTE_ERR_CONNECTION_FAILED;
|
||||
return true;
|
||||
@ -332,19 +332,19 @@ static bool mca_oob_tcp_msg_recv(mca_oob_tcp_msg_t* msg, mca_oob_tcp_peer_t* pee
|
||||
while(msg->msg_rwnum) {
|
||||
rc = readv(peer->peer_sd, msg->msg_rwptr, msg->msg_rwnum);
|
||||
if(rc < 0) {
|
||||
if(ompi_socket_errno == EINTR)
|
||||
if(opal_socket_errno == EINTR)
|
||||
continue;
|
||||
/* In windows, many of the socket functions return an EWOULDBLOCK instead of \
|
||||
things like EAGAIN, EINPROGRESS, etc. It has been verified that this will \
|
||||
not conflict with other error codes that are returned by these functions \
|
||||
under UNIX/Linux environments */
|
||||
else if (ompi_socket_errno == EAGAIN || ompi_socket_errno == EWOULDBLOCK)
|
||||
else if (opal_socket_errno == EAGAIN || opal_socket_errno == EWOULDBLOCK)
|
||||
return false;
|
||||
else {
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_msg_recv: readv failed with errno=%d",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
mca_oob_tcp_peer_close(peer);
|
||||
mca_oob_call_exception_handlers(&peer->peer_name, MCA_OOB_PEER_DISCONNECTED);
|
||||
return false;
|
||||
@ -354,7 +354,7 @@ static bool mca_oob_tcp_msg_recv(mca_oob_tcp_msg_t* msg, mca_oob_tcp_peer_t* pee
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_msg_recv: peer closed connection",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
}
|
||||
mca_oob_tcp_peer_close(peer);
|
||||
mca_oob_call_exception_handlers(&peer->peer_name, MCA_OOB_PEER_DISCONNECTED);
|
||||
|
@ -32,7 +32,7 @@
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#include "orte/orte_socket_errno.h"
|
||||
#include "opal/opal_socket_errno.h"
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
@ -275,7 +275,7 @@ static int mca_oob_tcp_peer_start_connect(mca_oob_tcp_peer_t* peer)
|
||||
"[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_peer_start_connect: socket() failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
mca_oob_tcp_peer_shutdown(peer);
|
||||
opal_evtimer_add(&peer->peer_timer_event, &tv);
|
||||
return ORTE_ERR_UNREACH;
|
||||
@ -292,14 +292,14 @@ static int mca_oob_tcp_peer_start_connect(mca_oob_tcp_peer_t* peer)
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_peer_connect: fcntl(F_GETFL) failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
} else {
|
||||
flags |= O_NONBLOCK;
|
||||
if(fcntl(peer->peer_sd, F_SETFL, flags) < 0)
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_peer_connect: fcntl(F_SETFL) failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
}
|
||||
|
||||
if(mca_oob_tcp_component.tcp_debug > 0) {
|
||||
@ -332,7 +332,7 @@ static int mca_oob_tcp_peer_start_connect(mca_oob_tcp_peer_t* peer)
|
||||
/* start the connect - will likely fail with EINPROGRESS */
|
||||
if(connect(peer->peer_sd, (struct sockaddr*)&inaddr, sizeof(inaddr)) < 0) {
|
||||
/* non-blocking so wait for completion */
|
||||
if(ompi_socket_errno == EINPROGRESS || ompi_socket_errno == EWOULDBLOCK) {
|
||||
if(opal_socket_errno == EINPROGRESS || opal_socket_errno == EWOULDBLOCK) {
|
||||
opal_event_add(&peer->peer_send_event, 0);
|
||||
/* Waiting for completion in the middle of the list ?! Let's just hope we try with the
|
||||
* correct IP address...
|
||||
@ -345,7 +345,7 @@ static int mca_oob_tcp_peer_start_connect(mca_oob_tcp_peer_t* peer)
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
inet_ntoa(inaddr.sin_addr),
|
||||
ntohs(inaddr.sin_port),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
@ -389,7 +389,7 @@ static void mca_oob_tcp_peer_complete_connect(mca_oob_tcp_peer_t* peer)
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_peer_complete_connect: getsockopt() failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
mca_oob_tcp_peer_close(peer);
|
||||
return;
|
||||
}
|
||||
@ -597,7 +597,7 @@ static int mca_oob_tcp_peer_recv_blocking(mca_oob_tcp_peer_t* peer, void* data,
|
||||
|
||||
/* socket is non-blocking so handle errors */
|
||||
if(retval < 0) {
|
||||
if(ompi_socket_errno != EINTR && ompi_socket_errno != EAGAIN && ompi_socket_errno != EWOULDBLOCK) {
|
||||
if(opal_socket_errno != EINTR && opal_socket_errno != EAGAIN && opal_socket_errno != EWOULDBLOCK) {
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_peer_recv_blocking: recv() failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
@ -623,11 +623,11 @@ static int mca_oob_tcp_peer_send_blocking(mca_oob_tcp_peer_t* peer, void* data,
|
||||
while(cnt < size) {
|
||||
int retval = send(peer->peer_sd, (char *)ptr+cnt, size-cnt, 0);
|
||||
if(retval < 0) {
|
||||
if(ompi_socket_errno != EINTR && ompi_socket_errno != EAGAIN && ompi_socket_errno != EWOULDBLOCK) {
|
||||
if(opal_socket_errno != EINTR && opal_socket_errno != EAGAIN && opal_socket_errno != EWOULDBLOCK) {
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_peer_send_blocking: send() failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(&(peer->peer_name)),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
mca_oob_tcp_peer_close(peer);
|
||||
return -1;
|
||||
}
|
||||
@ -796,13 +796,13 @@ static void mca_oob_tcp_peer_dump(mca_oob_tcp_peer_t* peer, const char* msg)
|
||||
sprintf(dst, "%s", inet_ntoa(inaddr.sin_addr));
|
||||
|
||||
if((flags = fcntl(peer->peer_sd, F_GETFL, 0)) < 0) {
|
||||
opal_output(0, "mca_oob_tcp_peer_dump: fcntl(F_GETFL) failed with errno=%d\n", ompi_socket_errno);
|
||||
opal_output(0, "mca_oob_tcp_peer_dump: fcntl(F_GETFL) failed with errno=%d\n", opal_socket_errno);
|
||||
}
|
||||
|
||||
#if defined(SO_SNDBUF)
|
||||
optlen = sizeof(sndbuf);
|
||||
if(getsockopt(peer->peer_sd, SOL_SOCKET, SO_SNDBUF, (char *)&sndbuf, &optlen) < 0) {
|
||||
opal_output(0, "mca_oob_tcp_peer_dump: SO_SNDBUF option: errno %d\n", ompi_socket_errno);
|
||||
opal_output(0, "mca_oob_tcp_peer_dump: SO_SNDBUF option: errno %d\n", opal_socket_errno);
|
||||
}
|
||||
#else
|
||||
sndbuf = -1;
|
||||
@ -810,7 +810,7 @@ static void mca_oob_tcp_peer_dump(mca_oob_tcp_peer_t* peer, const char* msg)
|
||||
#if defined(SO_RCVBUF)
|
||||
optlen = sizeof(rcvbuf);
|
||||
if(getsockopt(peer->peer_sd, SOL_SOCKET, SO_RCVBUF, (char *)&rcvbuf, &optlen) < 0) {
|
||||
opal_output(0, "mca_oob_tcp_peer_dump: SO_RCVBUF option: errno %d\n", ompi_socket_errno);
|
||||
opal_output(0, "mca_oob_tcp_peer_dump: SO_RCVBUF option: errno %d\n", opal_socket_errno);
|
||||
}
|
||||
#else
|
||||
rcvbuf = -1;
|
||||
@ -818,7 +818,7 @@ static void mca_oob_tcp_peer_dump(mca_oob_tcp_peer_t* peer, const char* msg)
|
||||
#if defined(TCP_NODELAY)
|
||||
optlen = sizeof(nodelay);
|
||||
if(getsockopt(peer->peer_sd, IPPROTO_TCP, TCP_NODELAY, (char *)&nodelay, &optlen) < 0) {
|
||||
opal_output(0, "mca_oob_tcp_peer_dump: TCP_NODELAY option: errno %d\n", ompi_socket_errno);
|
||||
opal_output(0, "mca_oob_tcp_peer_dump: TCP_NODELAY option: errno %d\n", opal_socket_errno);
|
||||
}
|
||||
#else
|
||||
nodelay = 0;
|
||||
@ -940,19 +940,19 @@ void mca_oob_tcp_set_socket_options(int sd)
|
||||
#if defined(TCP_NODELAY)
|
||||
optval = 1;
|
||||
if(setsockopt(sd, IPPROTO_TCP, TCP_NODELAY, (char *)&optval, sizeof(optval)) < 0) {
|
||||
opal_output(0, "[%s:%d] setsockopt(TCP_NODELAY) failed with errno=%d", __FILE__, __LINE__, ompi_socket_errno);
|
||||
opal_output(0, "[%s:%d] setsockopt(TCP_NODELAY) failed with errno=%d", __FILE__, __LINE__, opal_socket_errno);
|
||||
}
|
||||
#endif
|
||||
#if defined(SO_SNDBUF)
|
||||
if(mca_oob_tcp_component.tcp_sndbuf > 0 &&
|
||||
setsockopt(sd, SOL_SOCKET, SO_SNDBUF, (char *)&mca_oob_tcp_component.tcp_sndbuf, sizeof(int)) < 0) {
|
||||
opal_output(0, "[%s:%d] setsockopt(SO_SNDBUF) failed with errno %d", __FILE__, __LINE__, ompi_socket_errno);
|
||||
opal_output(0, "[%s:%d] setsockopt(SO_SNDBUF) failed with errno %d", __FILE__, __LINE__, opal_socket_errno);
|
||||
}
|
||||
#endif
|
||||
#if defined(SO_RCVBUF)
|
||||
if(mca_oob_tcp_component.tcp_rcvbuf > 0 &&
|
||||
setsockopt(sd, SOL_SOCKET, SO_RCVBUF, (char *)&mca_oob_tcp_component.tcp_rcvbuf, sizeof(int)) < 0) {
|
||||
opal_output(0, "[%s:%d] setsockopt(SO_RCVBUF) failed with errno %d", __FILE__, __LINE__, ompi_socket_errno);
|
||||
opal_output(0, "[%s:%d] setsockopt(SO_RCVBUF) failed with errno %d", __FILE__, __LINE__, opal_socket_errno);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -33,7 +33,7 @@
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#include "orte/orte_socket_errno.h"
|
||||
#include "opal/opal_socket_errno.h"
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
@ -94,7 +94,7 @@ int mca_oob_tcp_ping(
|
||||
"[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_ping: socket() failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(name),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
return ORTE_ERR_UNREACH;
|
||||
}
|
||||
|
||||
@ -103,14 +103,14 @@ int mca_oob_tcp_ping(
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_ping: fcntl(F_GETFL) failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(name),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
} else {
|
||||
flags |= O_NONBLOCK;
|
||||
if(fcntl(sd, F_SETFL, flags) < 0) {
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_ping: fcntl(F_SETFL) failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(name),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
}
|
||||
}
|
||||
|
||||
@ -118,7 +118,7 @@ int mca_oob_tcp_ping(
|
||||
FD_ZERO(&fdset);
|
||||
if(connect(sd, (struct sockaddr*)&inaddr, sizeof(inaddr)) < 0) {
|
||||
/* connect failed? */
|
||||
if(ompi_socket_errno != EINPROGRESS && ompi_socket_errno != EWOULDBLOCK) {
|
||||
if(opal_socket_errno != EINPROGRESS && opal_socket_errno != EWOULDBLOCK) {
|
||||
close(sd);
|
||||
return ORTE_ERR_UNREACH;
|
||||
}
|
||||
@ -139,7 +139,7 @@ int mca_oob_tcp_ping(
|
||||
opal_output(0, "[%lu,%lu,%lu]-[%lu,%lu,%lu] mca_oob_tcp_ping: fcntl(F_SETFL) failed with errno=%d\n",
|
||||
ORTE_NAME_ARGS(orte_process_info.my_name),
|
||||
ORTE_NAME_ARGS(name),
|
||||
ompi_socket_errno);
|
||||
opal_socket_errno);
|
||||
}
|
||||
|
||||
/* send a probe message */
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user