]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
If inotify_add_watch() fails, log an error.
authorTimo Sirainen <tss@iki.fi>
Mon, 5 May 2008 15:41:32 +0000 (18:41 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 5 May 2008 15:41:32 +0000 (18:41 +0300)
--HG--
branch : HEAD

src/lib/ioloop-notify-inotify.c

index 6db71dd49b484d207dd4f1d541bda254167218ff..d0a91ca2e686ce7c40e0af1633d45c99825f3ce7 100644 (file)
@@ -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;
        }