dovecot-2.0: ioloop-kqueue: Improved error messages.

dovecot at dovecot.org dovecot at dovecot.org
Thu Oct 15 20:46:06 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/ebebf0b447c7
changeset: 10067:ebebf0b447c7
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Oct 15 13:45:59 2009 -0400
description:
ioloop-kqueue: Improved error messages.

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/lib/ioloop-kqueue.c |    4 ++--

diffs (18 lines):

diff -r 713e66a4cd07 -r ebebf0b447c7 src/lib/ioloop-kqueue.c
--- a/src/lib/ioloop-kqueue.c	Thu Oct 15 13:20:44 2009 -0400
+++ b/src/lib/ioloop-kqueue.c	Thu Oct 15 13:45:59 2009 -0400
@@ -64,12 +64,12 @@ void io_loop_handle_add(struct io_file *
 	if ((io->io.condition & (IO_READ | IO_ERROR)) != 0) {
 		MY_EV_SET(&ev, io->fd, EVFILT_READ, EV_ADD, 0, 0, io);
 		if (kevent(ctx->kq, &ev, 1, NULL, 0, NULL) < 0)
-			i_fatal("kevent(EV_ADD, %d) failed: %m", io->fd);
+			i_fatal("kevent(EV_ADD, READ, %d) failed: %m", io->fd);
 	}
 	if ((io->io.condition & IO_WRITE) != 0) {
 		MY_EV_SET(&ev, io->fd, EVFILT_WRITE, EV_ADD, 0, 0, io);
 		if (kevent(ctx->kq, &ev, 1, NULL, 0, NULL) < 0)
-			i_fatal("kevent(EV_ADD, %d) failed: %m", io->fd);
+			i_fatal("kevent(EV_ADD, WRITE, %d) failed: %m", io->fd);
 	}
 
 	/* allow kevent() to return the maximum number of events


More information about the dovecot-cvs mailing list