summaryrefslogtreecommitdiff
path: root/src/inotify.c
diff options
context:
space:
mode:
authorAndreas Politz <politza@hochschule-trier.de>2017-05-26 16:42:43 +0200
committerMichael Albinus <michael.albinus@gmx.de>2017-05-26 16:42:43 +0200
commitd02e8ab6d622546bf5bb6b728644ace7a8f5fc2d (patch)
treed130dc9f272bc97e594dcdc296bc32780a11c57e /src/inotify.c
parentb3032988400448ff0ad2f6e658a0e90fac6bd15f (diff)
downloademacs-d02e8ab6d622546bf5bb6b728644ace7a8f5fc2d.tar.gz
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).
Diffstat (limited to 'src/inotify.c')
-rw-r--r--src/inotify.c16
1 files changed, 15 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. */
#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;