]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
ioloop-kqueue: Improved error messages.
authorTimo Sirainen <tss@iki.fi>
Thu, 15 Oct 2009 17:45:59 +0000 (13:45 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 15 Oct 2009 17:45:59 +0000 (13:45 -0400)
--HG--
branch : HEAD

src/lib/ioloop-kqueue.c

index ccf00aa8a9782fc8f49f5f15ad04fa202d7ef8b6..9f202588ebf58aaeddfec9460707d3646b1e1b92 100644 (file)
@@ -64,12 +64,12 @@ void io_loop_handle_add(struct io_file *io)
        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