]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: If epoll_ctl() fails, panic instead of just fatal.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 18 May 2016 15:48:27 +0000 (18:48 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 18 May 2016 15:48:27 +0000 (18:48 +0300)
This makes it easier to fix such bugs.

src/lib/ioloop-epoll.c

index 1143abecb61739ba95f6c622d12e58258caa2f2d..c2fe1a94867edad461fbc486b07835557466a516 100644 (file)
@@ -105,7 +105,7 @@ void io_loop_handle_add(struct io_file *io)
 
        if (epoll_ctl(ctx->epfd, op, io->fd, &event) < 0) {
                if (errno == EPERM && op == EPOLL_CTL_ADD) {
-                       i_fatal("epoll_ctl(add, %d) failed: %m "
+                       i_panic("epoll_ctl(add, %d) failed: %m "
                                "(fd doesn't support epoll%s)", io->fd,
                                io->fd != STDIN_FILENO ? "" :
                                " - instead of '<file', try 'cat file|'");