dovecot-1.2: kqueue notify: Don't assert-cras if kevent() return...

dovecot at dovecot.org dovecot at dovecot.org
Tue Dec 16 05:30:36 EET 2008


details:   http://hg.dovecot.org/dovecot-1.2/rev/076ccdcbbeb2
changeset: 8557:076ccdcbbeb2
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Dec 16 05:30:31 2008 +0200
description:
kqueue notify: Don't assert-cras if kevent() returns multiple events for the same io.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/ioloop-notify-kqueue.c |    2 +-

diffs (12 lines):

diff -r 5d80abcfb2ff -r 076ccdcbbeb2 src/lib/ioloop-notify-kqueue.c
--- a/src/lib/ioloop-notify-kqueue.c	Mon Dec 15 18:47:41 2008 +0200
+++ b/src/lib/ioloop-notify-kqueue.c	Tue Dec 16 05:30:31 2008 +0200
@@ -63,7 +63,7 @@ static void event_callback(struct ioloop
 
 	for (i = 0; i < ret; i++) {
 		io = (void *)events[i].udata;
-		i_assert(io->refcount == 1);
+		i_assert(io->refcount >= 1);
 		io->refcount++;
 	}
 	for (i = 0; i < ret; i++) {


More information about the dovecot-cvs mailing list