]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: inotify doesn't need to watch for IN_CLOSE
authorTimo Sirainen <tss@iki.fi>
Wed, 19 Aug 2015 13:50:10 +0000 (16:50 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 19 Aug 2015 13:50:10 +0000 (16:50 +0300)
This doesn't indicate that the file was modified. We don't care if some
reader accessed a watched file.

src/lib/ioloop-notify-inotify.c

index 00b76c4222b6789d893d95ddd11324b6ca07cfdf..a67ed5a0395cdac66b096c04f573339800b8752d 100644 (file)
@@ -101,7 +101,7 @@ enum io_notify_result io_add_notify(const char *path, io_callback_t *callback,
 
        wd = inotify_add_watch(ctx->inotify_fd, path,
                               IN_CREATE | IN_DELETE | IN_DELETE_SELF |
-                              IN_MOVE | IN_CLOSE | IN_MODIFY);
+                              IN_MOVE | IN_MODIFY);
        if (wd < 0) {
                /* ESTALE could happen with NFS. Don't bother giving an error
                   message then. */