[dovecot-cvs] dovecot/src/lib ioloop-poll.c,1.32.2.1,1.32.2.2

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


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

Modified Files:
      Tag: branch_1_0
	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.32.2.1
retrieving revision 1.32.2.2
diff -u -d -r1.32.2.1 -r1.32.2.2
--- ioloop-poll.c	16 Aug 2006 15:54:56 -0000	1.32.2.1
+++ ioloop-poll.c	28 Dec 2006 18:09:06 -0000	1.32.2.2
@@ -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