From e34f6064b63bc02598f462df304d2d68910ab04d Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 20 Oct 2009 20:55:55 -0400 Subject: [PATCH] ioloop-epool: Panic on epoll_ctl() failures so it's easier to find the bug. --HG-- branch : HEAD --- src/lib/ioloop-epoll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ioloop-epoll.c b/src/lib/ioloop-epoll.c index e93295cee9..e5ccd9fca0 100644 --- a/src/lib/ioloop-epoll.c +++ b/src/lib/ioloop-epoll.c @@ -110,7 +110,7 @@ void io_loop_handle_add(struct io_file *io) 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); } -- 2.47.3