From: Michael Albinus <michael.albinus@gmx.de>
To: "Troy de Freitas" <me@ntdef.com>
Cc: 53191@debbugs.gnu.org
Subject: bug#53191: 29.0.50; file-notify-add-watch fails for socket files on MacOS
Date: Sat, 15 Jan 2022 15:45:23 +0100 [thread overview]
Message-ID: <877db1ys58.fsf@gmx.de> (raw)
In-Reply-To: <87mtk1pbss.fsf@gmx.de> (Michael Albinus's message of "Wed, 12 Jan 2022 10:01:55 +0100")
Michael Albinus <michael.albinus@gmx.de> writes:
Hi Troy,
> Thanks for the report. The incrimed behavior is due to unconditional
> using of the EVFILT_VNODE filter, calling EV_SET in
> Fkqueue_add_watch. This requires a file descriptor.
>
> I'll investigate, whether another filter, like EVFILT_READ, is better
> suited for sockets, using a sockfd. This might take some days, though.
I'm sorry, but it seems that EV_SET requires a file descriptor. I
couldn't find a way to pass the socket file otherwise but via open(),
which doesn't work on *BSD-like systems, as you have analyzed.
What is your use case to supervise a socket file? You can't get more
information except that the file is deleted. And this you get also if
you monitor the parent directory.
>> - Troy
Best regards, Michael.
next prev parent reply other threads:[~2022-01-15 14:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-11 16:22 bug#53191: 29.0.50; file-notify-add-watch fails for socket files on MacOS Troy de Freitas
2022-01-12 9:01 ` Michael Albinus
2022-01-15 14:45 ` Michael Albinus [this message]
2022-01-15 16:49 ` Troy de Freitas
2022-01-15 17:37 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877db1ys58.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=53191@debbugs.gnu.org \
--cc=me@ntdef.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).