1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Get rid of "connection refused" message because Corey doesn't like it.

This commit is contained in:
Patrick Caulfield 2005-02-02 09:17:56 +00:00
parent 939a307df2
commit 28b4320c7f
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.01.04 - Version 2.01.04 -
=================================== ===================================
Gulm clvmd doesn't report "connection refused" errors.
Version 2.01.03 - 1st February 2005 Version 2.01.03 - 1st February 2005
=================================== ===================================

View File

@ -286,8 +286,14 @@ static int connect_csid(char *csid, struct local_client **newclient)
DEBUGLOG("Connecting socket %d\n", fd); DEBUGLOG("Connecting socket %d\n", fd);
if (connect(fd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in6)) < 0) if (connect(fd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in6)) < 0)
{
/* "Connection refused" is "normal" because clvmd may not yet be running
* on that node.
*/
if (errno != ECONNREFUSED)
{ {
syslog(LOG_ERR, "Unable to connect to remote node: %m"); syslog(LOG_ERR, "Unable to connect to remote node: %m");
}
DEBUGLOG("Unable to connect to remote node: %s\n", strerror(errno)); DEBUGLOG("Unable to connect to remote node: %s\n", strerror(errno));
close(fd); close(fd);
return -1; return -1;