changeset 10124:0598391a86e8 HEAD

ioloop-epool: Panic on epoll_ctl() failures so it's easier to find the bug.
author Timo Sirainen <tss@iki.fi>
date Tue, 20 Oct 2009 20:55:55 -0400
parents f6257036f7ef
children e248c1e53e00
files src/lib/ioloop-epoll.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/ioloop-epoll.c	Tue Oct 20 20:35:34 2009 -0400
+++ b/src/lib/ioloop-epoll.c	Tue Oct 20 20:55:55 2009 -0400
@@ -110,7 +110,7 @@
 	op = first ? EPOLL_CTL_ADD : EPOLL_CTL_MOD;
 
 	if (epoll_ctl(ctx->epfd, op, io->fd, &event) < 0) {
-		i_fatal("io_loop_handle_add: epoll_ctl(%d, %d): %m",
+		i_panic("io_loop_handle_add: epoll_ctl(%d, %d): %m",
 			op, io->fd);
 	}