From e095ba4b49c49d502749f74ce8dfc5f2fda955fa Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 24 Apr 2015 21:03:30 +1000 Subject: [PATCH] Mask out error 0 in socket error messages --- src/connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index 35dd0bd2..b57bf048 100644 --- a/src/connector.c +++ b/src/connector.c @@ -520,7 +520,7 @@ void *receiver(void *arg) /* See what type of error this is and raise the log * level of the message if it's unexpected. */ getsockopt(client->fd, SOL_SOCKET, SO_ERROR, (void *)&error, &errlen); - if (error != 104) { + if (error && error != 104) { LOGNOTICE("Client id %"PRId64" fd %d epollerr HUP in epoll with error %d: %s", client->id, client->fd, error, strerror(error)); } else {