Mercurial > dovecot > original-hg > dovecot-1.2
changeset 4971:0c93af60fa9d HEAD
If we get POLLNVAL, disable events completely for the io so we don't just loop forever.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 28 Dec 2006 20:09:07 +0200 |
parents | d3b8fcc72c69 |
children | 0103df03b5d4 |
files | src/lib/ioloop-poll.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ioloop-poll.c Thu Dec 28 18:58:05 2006 +0200 +++ b/src/lib/ioloop-poll.c Thu Dec 28 20:09:07 2006 +0200 @@ -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 &