Mercurial > dovecot > original-hg > dovecot-1.2
changeset 9213:5cc26d4fc00f HEAD
inotify: Give a better error message if user's watch limit exceeds.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 08 Jul 2009 14:10:11 -0400 |
parents | 6d7f6ea02e17 |
children | 7d11a507cf3a |
files | src/lib/ioloop-notify-inotify.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ioloop-notify-inotify.c Wed Jul 08 13:50:32 2009 -0400 +++ b/src/lib/ioloop-notify-inotify.c Wed Jul 08 14:10:11 2009 -0400 @@ -106,7 +106,13 @@ if (errno == ENOENT || errno == ESTALE) return IO_NOTIFY_NOTFOUND; - i_error("inotify_add_watch(%s) failed: %m", path); + if (errno != ENOSPC) + i_error("inotify_add_watch(%s) failed: %m", path); + else { + i_warning("Inotify watch limit for user exceeded, " + "disabling. Increase " + "/proc/sys/fs/inotify/max_user_watches"); + } ctx->disabled = TRUE; return IO_NOTIFY_NOSUPPORT; }