diff options
| author | Andreas Politz | 2017-05-26 16:42:43 +0200 |
|---|---|---|
| committer | Michael Albinus | 2017-05-26 16:42:43 +0200 |
| commit | d02e8ab6d622546bf5bb6b728644ace7a8f5fc2d (patch) | |
| tree | d130dc9f272bc97e594dcdc296bc32780a11c57e /src | |
| parent | b3032988400448ff0ad2f6e658a0e90fac6bd15f (diff) | |
| download | emacs-d02e8ab6d622546bf5bb6b728644ace7a8f5fc2d.tar.gz emacs-d02e8ab6d622546bf5bb6b728644ace7a8f5fc2d.zip | |
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')
| -rw-r--r-- | src/inotify.c | 16 |
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/>. */ | |||
| 41 | #ifndef IN_ONLYDIR | 41 | #ifndef IN_ONLYDIR |
| 42 | # define IN_ONLYDIR 0 | 42 | # define IN_ONLYDIR 0 |
| 43 | #endif | 43 | #endif |
| 44 | #define INOTIFY_DEFAULT_MASK (IN_ALL_EVENTS | IN_EXCL_UNLINK) | 44 | #define INOTIFY_DEFAULT_MASK \ |
| 45 | (IN_ATTRIB | \ | ||
| 46 | /* IN_ACCESS | */ \ | ||
| 47 | /* IN_CLOSE_WRITE | */ \ | ||
| 48 | /* IN_CLOSE_NOWRITE | */ \ | ||
| 49 | IN_CREATE | \ | ||
| 50 | IN_DELETE | \ | ||
| 51 | IN_DELETE_SELF | \ | ||
| 52 | IN_IGNORED | \ | ||
| 53 | IN_MODIFY | \ | ||
| 54 | IN_MOVE_SELF | \ | ||
| 55 | IN_MOVED_FROM | \ | ||
| 56 | IN_MOVED_TO | \ | ||
| 57 | /* IN_OPEN | */ \ | ||
| 58 | IN_EXCL_UNLINK) | ||
| 45 | 59 | ||
| 46 | /* File handle for inotify. */ | 60 | /* File handle for inotify. */ |
| 47 | static int inotifyfd = -1; | 61 | static int inotifyfd = -1; |