From: Timo Sirainen Date: Fri, 15 Oct 2010 18:04:42 +0000 (+0100) Subject: epoll: Suggest not-so-UUOC if epoll_ctl() fails for stdin X-Git-Tag: 2.0.6~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d4cd9cde9e01d4ad9354e6e30ac2f90d13042b2;p=thirdparty%2Fdovecot%2Fcore.git epoll: Suggest not-so-UUOC if epoll_ctl() fails for stdin --- diff --git a/src/lib/ioloop-epoll.c b/src/lib/ioloop-epoll.c index f22bafee92..5f7095b7dc 100644 --- a/src/lib/ioloop-epoll.c +++ b/src/lib/ioloop-epoll.c @@ -112,7 +112,9 @@ 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 " - "(fd doesn't support epoll)", io->fd); + "(fd doesn't support epoll%s)", io->fd, + io->fd != STDIN_FILENO ? "" : + " - instead of 'fd);