[dovecot-cvs] dovecot/src/lib ioloop-poll.c,1.33,1.34

tss at dovecot.org tss at dovecot.org
Thu Dec 28 18:09:10 UTC 2006


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv3185

Modified Files:
	ioloop-poll.c 
Log Message:
If we get POLLNVAL, disable events completely for the io so we don't just loop forever.



Index: ioloop-poll.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-poll.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- ioloop-poll.c	16 Aug 2006 15:54:58 -0000	1.33
+++ ioloop-poll.c	28 Dec 2006 18:09:07 -0000	1.34
@@ -171,7 +171,7 @@
 			if (pollfd->revents & POLLNVAL) {
 				i_error("invalid I/O fd %d, callback %p",
 					io->fd, (void *) io->callback);
-				pollfd->events &= ~POLLNVAL;
+				pollfd->events = 0;
 				pollfd->revents = 0;
 				call = TRUE;
 			} else if ((io->condition &



More information about the dovecot-cvs mailing list