dovecot-2.2: kqueue: Changed all i_fatal() calls to i_panic()s t...

dovecot at dovecot.org dovecot at dovecot.org
Fri May 2 10:21:47 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/304b95de6a5f
changeset: 17307:304b95de6a5f
user:      Timo Sirainen <tss at iki.fi>
date:      Fri May 02 13:21:18 2014 +0300
description:
kqueue: Changed all i_fatal() calls to i_panic()s to make debugging them possible.

diffstat:

 src/lib/ioloop-kqueue.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1f2c83d6dd2e -r 304b95de6a5f src/lib/ioloop-kqueue.c
--- a/src/lib/ioloop-kqueue.c	Fri May 02 12:11:54 2014 +0300
+++ b/src/lib/ioloop-kqueue.c	Fri May 02 13:21:18 2014 +0300
@@ -64,12 +64,12 @@
 	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, READ, %d) failed: %m", io->fd);
+			i_panic("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, WRITE, %d) failed: %m", io->fd);
+			i_panic("kevent(EV_ADD, WRITE, %d) failed: %m", io->fd);
 	}
 
 	/* allow kevent() to return the maximum number of events
@@ -128,7 +128,7 @@
 	events = array_get_modifiable(&ctx->events, &events_count);
 	ret = kevent (ctx->kq, NULL, 0, events, events_count, &ts);
 	if (ret < 0 && errno != EINTR)
-		i_fatal("kevent(): %m");
+		i_panic("kevent(): %m");
 
 	/* reference all IOs */
 	for (i = 0; i < ret; i++) {


More information about the dovecot-cvs mailing list