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:
parent
939a307df2
commit
28b4320c7f
@ -1,5 +1,6 @@
|
||||
Version 2.01.04 -
|
||||
===================================
|
||||
Gulm clvmd doesn't report "connection refused" errors.
|
||||
|
||||
Version 2.01.03 - 1st February 2005
|
||||
===================================
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user