bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26973: 26.0.50; sleep-for behavior changes with global-auto-revert-m


From: Paul Eggert
Subject: bug#26973: 26.0.50; sleep-for behavior changes with global-auto-revert-mode enabled
Date: Fri, 26 May 2017 11:06:38 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0

the event flags used are to[o] promiscuous and that this
prevents other processes from reading.  Removing ACCESS, OPEN and
CLOSE events appears to rectify the situation.

This means that a later call to inotify-add-watch that lacks IN_OPEN will disable an already-existing watch that specifies IN_OPEN, right? That doesn't sound right.

I reviewed the inotify.c patches made since March and spotted what appear to be some problems related to this. What do you think of the attached patches? The first patch doesn't change behavior; it merely makes the later patches easier to write. The second patch restores onlydir (it appears to have been removed by mistake). The third patch uses IN_MASK_ADD instead of a promiscuous mask.

Attachment: 0001-Simplify-computation-of-inotify-mask.patch
Description: Text Data

Attachment: 0002-Restore-inotify-onlydir-support.patch
Description: Text Data

Attachment: 0003-Depromiscuify-inotify-with-IN_MASK_ADD.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]