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

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

bug#57536: 28.1; filenotify problems on macOS with symbolic links to dir


From: Michael Albinus
Subject: bug#57536: 28.1; filenotify problems on macOS with symbolic links to directories
Date: Sun, 04 Sep 2022 16:26:54 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Eli Zaretskii <eliz@gnu.org> writes:

Hi Eli,

>> Btw, there are bug#16113 and bug#18883, which report a similar problem
>> in auto-reverting. A possible solution could be to extend the FLAGS arg
>> of file-notify-add-watch by a condition 'follow', which means to
>> supervise the expanded symlink instead of the link file itself.
>
> I think it would be better to handle that option in Lisp, before we
> call the OS-specific notification library.  That way, we can control
> better what exactly "follow symlinks" means.

Of course, that's why I've mentioned file-notify-add-watch.

>> inotify knows the mask bit IN_DONT_FOLLOW (which we haven't set yet),
>> see inotify(7). Other libraries might offer similar possibilities, which
>> I haven't checked yet.
>
> I see that w32notify.c currently follows symlinks; that will need to
> be fixed.

Yep. I guess you'll care about w32notify.c. and I'll check inotify.c,
kqueue.c and gfilenotify.c?

Best regards, Michael.





reply via email to

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