Mercurial > dovecot > original-hg > dovecot-1.1
changeset 8320:527ffc77f00d 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 | 07a377d58ccf |
children | dee948c9f14f |
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 Tue Jul 07 23:52:06 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; }