git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@933 77e5149b-7576-45b1-b177-96237e5ba77b
Tomasz Kojm authored on 2004/09/28 01:49:23... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Mon Sep 27 18:46:26 CEST 2004 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * clamd/others.c: disable broken poll() code in is_fd_connected() |
|
4 |
+ * docs/MacOSX: update (Dale Enterprise L.L.C) |
|
5 |
+ |
|
1 | 6 |
Mon Sep 27 13:44:45 BST 2004 (njh) |
2 | 7 |
---------------------------------- |
3 | 8 |
* clamav-milter: SESSIONS: try to gracefully close when shutting down |
... | ... |
@@ -138,6 +138,7 @@ int poll_fd(int fd, int timeout_sec) |
138 | 138 |
|
139 | 139 |
int is_fd_connected(int fd) |
140 | 140 |
{ |
141 |
+#undef HAVE_POLL /* temporarily disabled */ |
|
141 | 142 |
#ifdef HAVE_POLL |
142 | 143 |
struct pollfd poll_data[1]; |
143 | 144 |
|
... | ... |
@@ -146,7 +147,7 @@ int is_fd_connected(int fd) |
146 | 146 |
poll_data[0].revents = 0; |
147 | 147 |
|
148 | 148 |
if (poll(poll_data, 1, 0) == -1) { |
149 |
- return 1; |
|
149 |
+ return 0; |
|
150 | 150 |
} |
151 | 151 |
if (poll_data[0].revents & POLLHUP) { |
152 | 152 |
return 0; |