Mercurial > dovecot > core-2.2
changeset 12282:7a839a028dfa
epoll: Suggest not-so-UUOC if epoll_ctl() fails for stdin
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 15 Oct 2010 19:04:42 +0100 |
parents | f48b52b9427e |
children | 2c364acbc293 |
files | src/lib/ioloop-epoll.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);