From a88f5277c5f6409e9f2b5709570d8ef6d4ba6377 Mon Sep 17 00:00:00 2001 From: Moe Jette <jette1@llnl.gov> Date: Sat, 16 Dec 2006 00:21:32 +0000 Subject: [PATCH] svn merge -r10575:10578 https://eris.llnl.gov/svn/slurm/branches/slurm-1.1 --- src/common/slurm_protocol_socket_implementation.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/common/slurm_protocol_socket_implementation.c b/src/common/slurm_protocol_socket_implementation.c index 83dafb95c39..672e0406381 100644 --- a/src/common/slurm_protocol_socket_implementation.c +++ b/src/common/slurm_protocol_socket_implementation.c @@ -604,10 +604,10 @@ extern int _slurm_connect (int __fd, struct sockaddr const * __addr, debug2("_slurm_connect poll timeout: %m"); return -1; } else { - /* poll saw an event on the socket */ - /* We need to check if the connection succeeded by - using getsockopt. The revent is not necessarily - POLLERR when the connection fails! */ + /* poll saw some event on the socket + * We need to check if the connection succeeded by + * using getsockopt. The revent is not necessarily + * POLLERR when the connection fails! */ len = sizeof(err); if (getsockopt(__fd, SOL_SOCKET, SO_ERROR, &err, &len) < 0) @@ -618,9 +618,9 @@ done: fcntl(__fd, F_SETFL, flags); if (err) { - errno = err; + slurm_seterrno(err); debug2("_slurm_connect failed: %m"); - errno = err; + slurm_seterrno(err); return -1; } -- GitLab