From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Troy de Freitas Newsgroups: gmane.emacs.bugs Subject: bug#53191: 29.0.50; file-notify-add-watch fails for socket files on MacOS Date: Sat, 15 Jan 2022 10:49:27 -0600 Message-ID: References: <877db1ys58.fsf@gmx.de> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28838"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53191@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 15 18:47:21 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8n96-0007HB-ON for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jan 2022 18:47:21 +0100 Original-Received: from localhost ([::1]:55624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n8n95-0006ZO-B3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jan 2022 12:47:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46570) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n8n8Z-0006Xh-CA for bug-gnu-emacs@gnu.org; Sat, 15 Jan 2022 12:46:47 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48764) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n8n7q-0005ge-Bd for bug-gnu-emacs@gnu.org; Sat, 15 Jan 2022 12:46:12 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n8n7q-0001Ny-AD for bug-gnu-emacs@gnu.org; Sat, 15 Jan 2022 12:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Troy de Freitas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jan 2022 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53191 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 53191-submit@debbugs.gnu.org id=B53191.16422687424094 (code B ref 53191); Sat, 15 Jan 2022 17:46:02 +0000 Original-Received: (at 53191) by debbugs.gnu.org; 15 Jan 2022 17:45:42 +0000 Original-Received: from localhost ([127.0.0.1]:41667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8n7T-00011a-PL for submit@debbugs.gnu.org; Sat, 15 Jan 2022 12:45:42 -0500 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:41963) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8mFC-0007HO-Kv for 53191@debbugs.gnu.org; Sat, 15 Jan 2022 11:49:35 -0500 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 079605C00F8; Sat, 15 Jan 2022 11:49:29 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Sat, 15 Jan 2022 11:49:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntdef.com; h= content-type:content-transfer-encoding:from:mime-version:subject :date:message-id:references:cc:in-reply-to:to; s=mesmtp; bh=zvEd +iOptXrea1uVIPT9EUhpKxMXR24Wx8cMEWaUEMI=; b=oA3r5aDv0v6pWoEX6Ijj sVl03nL+Ptzf4/oIpc45plABFkreUoJS4aiOgWoiA2tipDZAk6egllsnpb/k9hZz P66IJomvGwMYVxZdLueamBAL8vMwHBPAfRBHko47qqJXFmwIE18Fr3yVejQcWlVX 3cmOmfFqm3OjICDvSqAn8ro= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=zvEd+iOptXrea1uVIPT9EUhpKxMXR24Wx8cMEWaUE MI=; b=IgEo/PMW4OZNjcV+SVNTUxFwjNARWU0l9mcvvpUzCcaQLphQi3pRiXNYE rBwbfGLRbe5n4CyY0vJ0Tz7eYVvey/qPDTFHLhTLCwG+Z0yGCH+dX83y/90pfAdv ETco21Zz9SqRHKDplI2hYpqLCb81wxYJrmKL1w/PWj0gNaX/lBMQPemsQ+Cu35LS dFtbGazruV0HFIuHPt5xyah7KQsxaGiKCpWNQAcg1uaN27z/jucWyt1np1YPGlNv BvV9388y7+lX6A7mOTWYVU2fomWxWK4zZt3efzbyUtYRkS8dwEA29wSG9b1r6iuk c/fnz97zVOlhIcRP8WIKBP8nEIHMQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrtdejgdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpegtgffhggfufffkfhgjvffosehtqhhmtdhhtdejnecuhfhrohhmpefvrhhohicu uggvucfhrhgvihhtrghsuceomhgvsehnthguvghfrdgtohhmqeenucggtffrrghtthgvrh hnpedtkeejfefhjeffkeetleejjeeiueegledtffejgffhjeevtdelveehjeelfeeguden ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmvgesnh htuggvfhdrtghomh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 15 Jan 2022 11:49:28 -0500 (EST) In-Reply-To: <877db1ys58.fsf@gmx.de> X-Mailer: iPhone Mail (19C63) X-Mailman-Approved-At: Sat, 15 Jan 2022 12:45:36 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:224322 Archived-At: Hi Michael,=20 Thanks for looking into this. Actually, all I wanted was to be able to see w= hen the socket file was deleted.=20 Regards, Troy de Freitas > On Jan 15, 2022, at 8:45 AM, Michael Albinus wrot= e: >=20 > =EF=BB=BFMichael Albinus writes: >=20 > Hi Troy, >=20 >> 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. >>=20 >> I'll investigate, whether another filter, like EVFILT_READ, is better >> suited for sockets, using a sockfd. This might take some days, though. >=20 > 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. >=20 > 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. >=20 >>> - Troy >=20 > Best regards, Michael.