From: Timo Sirainen Date: Mon, 5 May 2008 15:41:32 +0000 (+0300) Subject: If inotify_add_watch() fails, log an error. X-Git-Tag: 1.1.rc6~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d347e6fe2a08ec1514980f5bc4a958d6c01b4720;p=thirdparty%2Fdovecot%2Fcore.git If inotify_add_watch() fails, log an error. --HG-- branch : HEAD --- diff --git a/src/lib/ioloop-notify-inotify.c b/src/lib/ioloop-notify-inotify.c index 6db71dd49b..d0a91ca2e6 100644 --- a/src/lib/ioloop-notify-inotify.c +++ b/src/lib/ioloop-notify-inotify.c @@ -106,6 +106,7 @@ enum io_notify_result io_add_notify(const char *path, io_callback_t *callback, if (errno == ENOENT || errno == ESTALE) return IO_NOTIFY_NOTFOUND; + i_error("inotify_add_watch(%s) failed: %m", path); ctx->disabled = TRUE; return IO_NOTIFY_NOSUPPORT; }