[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Assert that we never try to fakepoll on sock -1.



Update of /home/or/cvsroot/src/common
In directory moria.mit.edu:/tmp/cvs-serv18204/src/common

Modified Files:
	fakepoll.c 
Log Message:
Assert that we never try to fakepoll on sock -1.

Index: fakepoll.c
===================================================================
RCS file: /home/or/cvsroot/src/common/fakepoll.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- fakepoll.c	1 May 2004 20:46:27 -0000	1.23
+++ fakepoll.c	2 May 2004 20:17:43 -0000	1.24
@@ -60,6 +60,7 @@
         for (idx = 0; idx < nfds; ++idx) {
                 ufds[idx].revents = 0;
                 fd = ufds[idx].fd;
+                assert (fd >= 0);
                 if (fd > maxfd) {
                   maxfd = fd;
 #ifdef MS_WINDOWS