dovecot-1.1: kqueue notify: Don't assert-cras if kevent() return...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Dec 16 05:30:39 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/d178293dde50
changeset: 8050:d178293dde50
user: Timo Sirainen <tss at iki.fi>
date: Tue Dec 16 05:30:13 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 3145be9f66ae -r d178293dde50 src/lib/ioloop-notify-kqueue.c
--- a/src/lib/ioloop-notify-kqueue.c Tue Dec 16 04:59:24 2008 +0200
+++ b/src/lib/ioloop-notify-kqueue.c Tue Dec 16 05:30:13 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