dovecot-2.0: ioloop: If io_add() is called twice for same fd, gi...
dovecot at dovecot.org
dovecot at dovecot.org
Tue Oct 19 21:28:03 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/f7f2edaf6dca
changeset: 12314:f7f2edaf6dca
user: Timo Sirainen <tss at iki.fi>
date: Tue Oct 19 19:27:59 2010 +0100
description:
ioloop: If io_add() is called twice for same fd, give a bit more informative panic message.
diffstat:
src/lib/ioloop-iolist.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (15 lines):
diff -r 0ac9af7f7d5b -r f7f2edaf6dca src/lib/ioloop-iolist.c
--- a/src/lib/ioloop-iolist.c Tue Oct 19 18:48:00 2010 +0100
+++ b/src/lib/ioloop-iolist.c Tue Oct 19 19:27:59 2010 +0100
@@ -22,6 +22,11 @@
i_unreached();
}
+ if (list->ios[idx] != NULL) {
+ i_panic("io_add(0x%x) called twice fd=%d, callback=%p -> %p",
+ io->io.condition, io->fd, list->ios[idx]->io.callback,
+ io->io.callback);
+ }
i_assert(list->ios[idx] == NULL);
list->ios[idx] = io;
More information about the dovecot-cvs
mailing list