[Dovecot] Tiny kqueue specific patch
Hi, I have noticed from logs that (only handful of occurrences during whole week) sometimes there is some kind of unrecognized event on handle and the branch with i_panic() in ioloop-kqueue.c:io_loop_handler_run() catches it. This patch allows the i_panic() to print some more info about the nature of the unrecognized event so that I can find out what it is about. Since it is really rare event I ask anybody who sees Dovecot dying with "Unrecognized event" in logs to try this patch and report back with the output if it triggers again. The patch is against version 1.beta3. Vaclav Haisman --- ioloop-kqueue.c.orig Wed Mar 22 19:55:35 2006 +++ ioloop-kqueue.c Wed Mar 22 19:53:41 2006 @@ -204,7 +204,13 @@ void io_loop_handler_run(struct ioloop * (void *)io->callback); } } else - i_panic("Unrecognized event"); + i_panic("Unrecognized event: kevent {.ident = %u," + " .filter = 0x%04x," + " .flags = 0x%04x," + " .fflags = 0x%08x," + " .data = 0x%08x}", ctx->evbuf[i].ident, + ctx->evbuf[i].filter, ctx->evbuf[i].flags, + ctx->evbuf[i].fflags, ctx->evbuf[i].data); } }
participants (1)
-
Václav Haisman