From: Timo Sirainen Date: Sun, 27 Apr 2003 02:51:34 +0000 (+0300) Subject: Better handling for POLLNVAL. X-Git-Tag: 1.1.alpha1~4707 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15e6fbb1bdc66b05cccbd7976dd659153e255c26;p=thirdparty%2Fdovecot%2Fcore.git Better handling for POLLNVAL. --HG-- branch : HEAD --- diff --git a/src/lib/ioloop-poll.c b/src/lib/ioloop-poll.c index 3fc67308f4..3c1997d6b4 100644 --- a/src/lib/ioloop-poll.c +++ b/src/lib/ioloop-poll.c @@ -186,13 +186,11 @@ void io_loop_handler_run(struct ioloop *ioloop) 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 &