mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 22:07:36 +00:00
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).
This commit is contained in:
parent
b303298840
commit
d02e8ab6d6
1 changed files with 15 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue