]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
ioloop-epool: Panic on epoll_ctl() failures so it's easier to find the bug.
authorTimo Sirainen <tss@iki.fi>
Wed, 21 Oct 2009 00:55:55 +0000 (20:55 -0400)
committerTimo Sirainen <tss@iki.fi>
Wed, 21 Oct 2009 00:55:55 +0000 (20:55 -0400)
--HG--
branch : HEAD

src/lib/ioloop-epoll.c

index e93295cee932f94e251e238c218be87357408476..e5ccd9fca064d3c1c3eb9545d9ed2fad95ff00e2 100644 (file)
@@ -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);
        }