[dovecot-cvs] dovecot/src/lib ioloop-kqueue.c,1.3,1.4

cras at dovecot.org cras at dovecot.org
Sat Mar 25 10:08:06 EET 2006


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv11672

Modified Files:
	ioloop-kqueue.c 
Log Message:
Added more debugging information for handling unexpected events. Patch by
Václav Haisman



Index: ioloop-kqueue.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ioloop-kqueue.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- ioloop-kqueue.c	29 Jan 2006 10:32:37 -0000	1.3
+++ ioloop-kqueue.c	25 Mar 2006 08:08:03 -0000	1.4
@@ -204,7 +204,13 @@
 					(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);
 	}
 }
 



More information about the dovecot-cvs mailing list