From ced85d637c0cdac0175b4a95d7391776e77713f5 Mon Sep 17 00:00:00 2001 From: aCaB Date: Sun, 21 Mar 2010 11:44:07 +0100 Subject: [PATCH] bb#1889 --- clamd/others.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clamd/others.c b/clamd/others.c index c4df2c0e4..90e20f181 100644 --- a/clamd/others.c +++ b/clamd/others.c @@ -523,13 +523,14 @@ int fds_poll_recv(struct fd_data *data, int timeout, int check_signals, void *ev if (revents & (POLLIN|POLLHUP)) { logg("$Received POLLIN|POLLHUP on fd %d\n",data->poll_data[i].fd); } +#ifndef _WIN32 if (revents & POLLHUP) { /* avoid SHUT_WR problem on Mac OS X */ int ret = send(data->poll_data[i].fd, &n, 0, 0); if (!ret || (ret == -1 && errno == EINTR)) revents &= ~POLLHUP; } - +#endif if (revents & POLLIN) { int ret = read_fd_data(&data->buf[i]); /* Data available to be read */