Browse code

bugfix

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
Showing 4 changed files
... ...
@@ -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
... ...
@@ -46,7 +46,7 @@ while test $# -gt 0; do
46 46
 	;;
47 47
 
48 48
     --version)
49
-	echo devel-20040926
49
+	echo devel-20040927
50 50
 	exit 0
51 51
 	;;
52 52
 
... ...
@@ -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;
153 153
Binary files a/docs/MacOSX/Macintosh.tar.gz and b/docs/MacOSX/Macintosh.tar.gz differ