dovecot-2.0: epoll: Suggest not-so-UUOC if epoll_ctl() fails for...

dovecot at dovecot.org dovecot at dovecot.org
Fri Oct 15 21:04:48 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/7a839a028dfa
changeset: 12282:7a839a028dfa
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Oct 15 19:04:42 2010 +0100
description:
epoll: Suggest not-so-UUOC if epoll_ctl() fails for stdin

diffstat:

 src/lib/ioloop-epoll.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r f48b52b9427e -r 7a839a028dfa src/lib/ioloop-epoll.c
--- a/src/lib/ioloop-epoll.c	Fri Oct 15 18:55:52 2010 +0100
+++ b/src/lib/ioloop-epoll.c	Fri Oct 15 19:04:42 2010 +0100
@@ -112,7 +112,9 @@
 	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 '<file', try 'cat file|'");
 		}
 		i_panic("epoll_ctl(%s, %d) failed: %m",
 			op == EPOLL_CTL_ADD ? "add" : "mod", io->fd);


More information about the dovecot-cvs mailing list