GNU bug report logs - #53191
29.0.50; file-notify-add-watch fails for socket files on MacOS

Previous Next

Package: emacs;

Reported by: "Troy de Freitas" <me <at> ntdef.com>

Date: Tue, 11 Jan 2022 17:18:02 UTC

Severity: normal

Tags: notabug

Found in version 29.0.50

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #21 received at 53191 <at> debbugs.gnu.org (full text, mbox):

From: Troy de Freitas <me <at> ntdef.com>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 53191 <at> debbugs.gnu.org
Subject: Re: bug#53191: 29.0.50;
 file-notify-add-watch fails for socket files on MacOS
Date: Sat, 15 Jan 2022 10:49:27 -0600
Hi Michael, 

Thanks for looking into this. Actually, all I wanted was to be able to see when the socket file was deleted. 

Regards,
Troy de Freitas

> On Jan 15, 2022, at 8:45 AM, Michael Albinus <michael.albinus <at> gmx.de> wrote:
> 
> Michael Albinus <michael.albinus <at> 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.





This bug report was last modified 3 years and 126 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.