dovecot-2.2: lib: inotify doesn't need to watch for IN_CLOSE

dovecot at dovecot.org dovecot at dovecot.org
Wed Aug 19 13:51:04 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/84036f6687d5
changeset: 18982:84036f6687d5
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Aug 19 16:50:10 2015 +0300
description:
lib: inotify doesn't need to watch for IN_CLOSE
This doesn't indicate that the file was modified. We don't care if some
reader accessed a watched file.

diffstat:

 src/lib/ioloop-notify-inotify.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f84c81ed5d09 -r 84036f6687d5 src/lib/ioloop-notify-inotify.c
--- a/src/lib/ioloop-notify-inotify.c	Wed Aug 19 15:12:09 2015 +0300
+++ b/src/lib/ioloop-notify-inotify.c	Wed Aug 19 16:50:10 2015 +0300
@@ -101,7 +101,7 @@
 
 	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. */


More information about the dovecot-cvs mailing list