From: Andreas Politz Date: Fri, 26 May 2017 14:42:43 +0000 (+0200) Subject: Fix Bug#26973 X-Git-Tag: emacs-26.0.90~521^2~262 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d02e8ab6d622546bf5bb6b728644ace7a8f5fc2d;p=emacs.git Fix Bug#26973 * src/inotify.c (INOTIFY_DEFAULT_MASK): Removing ACCESS, OPEN and CLOSE events on order do let other processes also reading from their descriptors. (Bug#26973). --- diff --git a/src/inotify.c b/src/inotify.c index 290701349ef..d43b959747c 100644 --- a/src/inotify.c +++ b/src/inotify.c @@ -41,7 +41,21 @@ along with GNU Emacs. If not, see . */ #ifndef IN_ONLYDIR # define IN_ONLYDIR 0 #endif -#define INOTIFY_DEFAULT_MASK (IN_ALL_EVENTS | IN_EXCL_UNLINK) +#define INOTIFY_DEFAULT_MASK \ + (IN_ATTRIB | \ + /* IN_ACCESS | */ \ + /* IN_CLOSE_WRITE | */ \ + /* IN_CLOSE_NOWRITE | */ \ + IN_CREATE | \ + IN_DELETE | \ + IN_DELETE_SELF | \ + IN_IGNORED | \ + IN_MODIFY | \ + IN_MOVE_SELF | \ + IN_MOVED_FROM | \ + IN_MOVED_TO | \ + /* IN_OPEN | */ \ + IN_EXCL_UNLINK) /* File handle for inotify. */ static int inotifyfd = -1;