1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 01:55:10 +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 -
===================================
Gulm clvmd doesn't report "connection refused" errors.
Version 2.01.03 - 1st February 2005
===================================

View File

@ -287,7 +287,13 @@ static int connect_csid(char *csid, struct local_client **newclient)
DEBUGLOG("Connecting socket %d\n", fd);
if (connect(fd, (struct sockaddr *)&addr, sizeof(struct sockaddr_in6)) < 0)
{
syslog(LOG_ERR, "Unable to connect to remote node: %m");
/* "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");
}
DEBUGLOG("Unable to connect to remote node: %s\n", strerror(errno));
close(fd);
return -1;