[dovecot-cvs] dovecot/src/lib ioloop-poll.c,1.11,1.12
cras at procontrol.fi
cras at procontrol.fi
Sun Apr 27 06:51:36 EEST 2003
Update of /home/cvs/dovecot/src/lib
In directory danu:/tmp/cvs-serv21754
Modified Files:
ioloop-poll.c
Log Message:
Better handling for POLLNVAL.
Index: ioloop-poll.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib/ioloop-poll.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- ioloop-poll.c 1 Feb 2003 02:06:11 -0000 1.11
+++ ioloop-poll.c 27 Apr 2003 02:51:34 -0000 1.12
@@ -186,13 +186,11 @@
continue;
if (pollfd->revents & POLLNVAL) {
- if (!io->invalid) {
- io->invalid = TRUE;
- i_warning("invalid I/O fd %d, callback %p",
- io->fd, (void *) io->callback);
- }
-
- continue;
+ i_error("invalid I/O fd %d, callback %p",
+ io->fd, (void *) io->callback);
+ pollfd->events &= ~POLLNVAL;
+ pollfd->revents &= ~POLLNVAL;
+ continue;
}
if ((io->condition &
More information about the dovecot-cvs
mailing list