From unknown Thu Jun 19 12:34:49 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53191 <53191@debbugs.gnu.org> To: bug#53191 <53191@debbugs.gnu.org> Subject: Status: 29.0.50; file-notify-add-watch fails for socket files on MacOS Reply-To: bug#53191 <53191@debbugs.gnu.org> Date: Thu, 19 Jun 2025 19:34:49 +0000 retitle 53191 29.0.50; file-notify-add-watch fails for socket files on MacOS reassign 53191 emacs submitter 53191 "Troy de Freitas" severity 53191 normal tag 53191 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 11 12:17:39 2022 Received: (at submit) by debbugs.gnu.org; 11 Jan 2022 17:17:39 +0000 Received: from localhost ([127.0.0.1]:55409 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7KmA-0006li-2e for submit@debbugs.gnu.org; Tue, 11 Jan 2022 12:17:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:47050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7Jus-0002mU-Kx for submit@debbugs.gnu.org; Tue, 11 Jan 2022 11:22:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51608) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7Jur-0002mR-9R for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 11:22:33 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]:37173) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n7Jul-00081H-8y for bug-gnu-emacs@gnu.org; Tue, 11 Jan 2022 11:22:31 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 30F135C01B7 for ; Tue, 11 Jan 2022 11:22:22 -0500 (EST) Received: from imap42 ([10.202.2.92]) by compute1.internal (MEProxy); Tue, 11 Jan 2022 11:22:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ntdef.com; h= mime-version:message-id:date:from:to:subject:content-type; s= mesmtp; bh=r8QvRWNQip/pZwF8GEoaVqmWpmXv4AAss/r4iGUutQI=; b=UbZx8 CSY9Y1iIY9PZKBkHQNjcjHgQbc2NFoVGfHs9uAJvQ/R2i3O0Rdi29j7QhEDYehyE 45dnMH4cZERSlwS79o7JSkAeCVGle8tYK/O5o32DViG7ynDoM1NWIudijSDVGMS1 l7bmhwOZt+WCPwaSVSP4lPGgDQFMedMxh38LE4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=r8QvRWNQip/pZwF8GEoaVqmWpmXv4 AAss/r4iGUutQI=; b=QtXVsMyl8RrACc9uR0EJKxSfl4GAclMx1UiVIPvivoBUL ysnCaigfa3ykvAmcOqiI3+FsM7CyPb0Ur3i0RJEGMXc5A90JFDNRrJBRh21MK+qt udh0KXTgZv7/82254mrPnN19OZ2WZ+K8FCZMYM5iDUPnaeyAMzxHlQ6qw30Kp+Q+ GccJpAmDgpFT+MVhS3Eu6CSzW2bvtuEhIUw0ZRkNT5FPoy0y5SYrHOc2jqzFu9Iv V45HBxU0AeD8NRPP/iHMImtc6/Wf3FIQ/1ChEm/ujMWW9Fq0k/ld303H1MqTb6s4 CfbREau6XChKYY+RN9jG4kmCHqDMaZvbOoRUclV4w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudehfedgkeejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpedfvfhrohihucguvgcuhfhrvghithgrshdfuceomhgvsehnthgu vghfrdgtohhmqeenucggtffrrghtthgvrhhnpeeffeelkeetieehleeutedvvdfffffhge evveejtddvueehleetudduuefhteeugeenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehmvgesnhhtuggvfhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id EAA6E2180078; Tue, 11 Jan 2022 11:22:21 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4569-g891f756243-fm-20220111.001-g891f7562 Mime-Version: 1.0 Message-Id: Date: Tue, 11 Jan 2022 10:22:01 -0600 From: "Troy de Freitas" To: bug-gnu-emacs@gnu.org Subject: 29.0.50; file-notify-add-watch fails for socket files on MacOS Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.29; envelope-from=me@ntdef.com; helo=out5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 11 Jan 2022 12:17:37 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) This bug affects MacOS (and most likely FreeBSD and OpenBSD as well). On MacOS running `file-notify-add-watch' throws an error when attached to a UNIX socket file but works fine on Linux. To reproduce, using 'emacs -Q', evaluate the following elisp: (let* ((sock "/tmp/netproc.sock") (p (make-network-process :name "test" :family 'local :local sock :server t))) (unwind-protect (file-notify-add-watch sock '(change) (lambda (_) (message (format "%s changed." sock)))) (delete-process p) (delete-file sock))) It throws the error: edebug-signal: File cannot be opened: Operation not supported on socket, /tmp/netproc.sock The issue appears to be in the underlying call to `kqueue-add-watch', which uses `openat()' (by way of `emacs_open()`) to get a file-descriptor. According to the BSD docs for `openat()', calling `openat()' on socket files is not supported. In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin20.6.0, NS appkit-2022.60 Version 11.5.1 (Build 20G80)) of 2021-10-26 built on C02FW2L5Q05P Windowing system distributor 'Apple', version 10.3.2113 System Description: macOS 12.1 Configured using: 'configure --disable-dependency-tracking --disable-silent-rules --enable-locallisppath=/opt/homebrew/share/emacs/site-lisp --infodir=/opt/homebrew/Cellar/emacs-plus@29/29.0.50/share/info/emacs --prefix=/opt/homebrew/Cellar/emacs-plus@29/29.0.50 --with-xml2 --with-gnutls --without-dbus --with-imagemagick --with-modules --with-rsvg --with-ns --disable-ns-self-contained' Configured features: ACL GIF GLIB GMP GNUTLS IMAGEMAGICK JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8 Major mode: Elisp Minor modes in effect: semantic-minor-modes-format: ((:eval (if (or semantic-highlight-edits-mode semantic-show-unmatched-syntax-mode) S))) global-git-commit-mode: t magit-auto-revert-mode: t shell-dirtrack-mode: t default-text-scale-mode: t recentf-mode: t vertico-mode: t winner-mode: t windmove-mode: t elisp-slime-nav-mode: t paredit-mode: t aggressive-indent-mode: t highlight-quoted-mode: t display-fill-column-indicator-mode: t rainbow-delimiters-mode: t symbol-overlay-mode: t bug-reference-prog-mode: t goto-address-prog-mode: t dimmer-mode: t global-anzu-mode: t anzu-mode: t flycheck-color-mode-line-mode: t global-flycheck-mode: t flycheck-mode: t diredfl-global-mode: t savehist-mode: t electric-pair-mode: t delete-selection-mode: t global-auto-revert-mode: t global-so-long-mode: t mode-line-bell-mode: t beacon-mode: t global-page-break-lines-mode: t page-break-lines-mode: t whole-line-or-region-global-mode: t whole-line-or-region-local-mode: t hes-mode: t which-key-mode: t global-whitespace-cleanup-mode: t whitespace-cleanup-mode: t global-diff-hl-mode: t projectile-mode: t ipretty-mode: t auto-compile-on-load-mode: t auto-compile-on-save-mode: t auto-compile-mode: t immortal-scratch-mode: t envrc-global-mode: t envrc-mode: t marginalia-mode: t repeat-mode: t desktop-save-mode: t corfu-global-mode: t corfu-mode: t ns-auto-titlebar-mode: t override-global-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Features: (shadow emacsbug sendmail cal-move info-look proced move-dup eglot array jsonrpc switch-window switch-window-mvborder switch-window-asciiart quail man flymake-cc flymake-proc flymake macrostep-c cmacexp edebug pandoc-mode-utils sort tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw mode-local cedet calc-mode calc-yank calc-forms calc-arith calc-alg calc-comb calc-ext calc-misc calc-menu calc calc-loaddefs calc-macs reposition thai-util thai-word lao-util enriched facemenu json-mode json-snatcher slime-tests ert slime-fancy slime-indentation slime-cl-indent cl-indent slime-trace-dialog slime-fontifying-fu slime-package-fu slime-references slime-compiler-notes-tree slime-scratch slime-presentations bridge slime-macrostep macrostep slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc slime-repl slime-parse slime-company company slime arc-mode archive-mode hyperspec mail-extr tabify em-unix em-term em-script em-prompt em-ls em-hist em-pred em-glob em-cmpl em-dirs esh-var em-basic em-alias warnings quickrun em-banner eshell esh-mode esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util autoload mm-archive gnutls network-stream url-http url-gw nsm url-cache url-auth vterm term ehelp vterm-module term/xterm xterm macros rect loadhist docker-tramp tramp-cache tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat ls-lisp completion dos-w32 find-cmd debug backtrace apropos find-dired scratch sql vc-annotate vc-filewise ibuffer-vc gitignore-mode conf-mode cl-print shortdoc rainbow-mode ibuffer-projectile sh-script smie embark ffap misearch multi-isearch pulse scala-mode scala-mode-prettify-symbols scala-mode-imenu scala-mode-map scala-mode-fontlock scala-mode-indent scala-mode-paragraph scala-mode-syntax scala-mode-lib help-fns radix-tree magit-patch magit-subtree magit-gitignore magit-ediff ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init ediff-util wucuo wucuo-sdk find-lisp flyspell ispell info-colors js dired-aux diff-hl-dired magit-extras magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone magit-remote magit-commit magit-sequence magit-notes magit-worktree magit-tag magit-merge magit-branch magit-reset magit-files magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log which-func magit-diff smerge-mode diff git-commit log-edit add-log magit-core magit-autorevert magit-margin magit-transient magit-process with-editor shell magit-mode transient magit-git magit-section magit-utils crm markdown-mode doom-one-theme doom-themes doom-themes-base consult-vertico consult bookmark executable cus-edit cus-start cus-load default-text-scale recentf tree-widget orderless vertico winner windswap windmove add-node-modules-path typescript-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs elisp-slime-nav etags fileloop xref project view paredit aggressive-indent highlight-quoted display-fill-column-indicator rainbow-delimiters symbol-overlay vc-mtn vc-hg vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs bug-reference goto-addr dimmer anzu flycheck-color-mode-line face-remap flycheck-package package-lint let-alist imenu finder flycheck dash disp-table vc-git org-element avl-tree generator ol-eww eww xdg url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-search eieio-opt speedbar ezimage dframe gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum shr kinsoku svg dom gnus-group gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa epg rfc6068 epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs mail-utils wid-edit ol-docview doc-view image-mode exif dired-x diredfl dired dired-loaddefs ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi org-clock org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-emacs-lisp ob-core ob-eval org-table oc-basic bibtex iso8601 time-date ol org-keys oc org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs savehist elec-pair delsel autorevert filenotify so-long mode-line-bell beacon page-break-lines whole-line-or-region highlight-escape-sequences which-key diminish whitespace-cleanup-mode whitespace diff-hl log-view pcvs-util vc-dir ewoc vc vc-dispatcher diff-mode projectile lisp-mnt mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr grep compile text-property-search comint ring ibuf-ext ibuffer ibuffer-loaddefs thingatpt jka-compr ipretty advice auto-compile packed immortal-scratch uptimes pp envrc inheritenv server init init-local pcase marginalia init-locales session sanityinc-tomorrow-bright-theme color-theme-sanityinc-tomorrow color init-direnv init-snippets yasnippet-snippets yasnippet init-ledger init-dash init-folding init-misc init-slime init-lisp init-paredit init-nix init-terraform init-docker init-yaml init-toml init-sql init-python reformatter ansi-color init-http init-haml init-css init-html init-nxml init-org init-javascript init-erlang erlang-start init-csv init-markdown init-textile init-crontab init-compile init-projectile init-github init-git init-vc init-whitespace init-editing-utils repeat init-mmm mmm-auto mmm-vars mmm-utils mmm-compat init-sessions desktop frameset init-windows init-completion cape corfu init-embark init-minibuffer init-recentf init-flycheck init-ibuffer ibuf-macs init-uniquify init-grep init-isearch init-dired init-gui-frames ns-auto-titlebar init-osx-keys edmacro kmacro init-themes init-xterm init-frame-hooks init-exec-path exec-path-from-shell init-elpa fullframe use-package-ensure-system-package system-packages use-package use-package-delight use-package-diminish use-package-bind-key bind-key easy-mmode cl-extra help-mode use-package-ensure use-package-core finder-inf rx slime-autoloads info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source eieio eieio-core cl-macs eieio-loaddefs password-cache json map url-vars seq gv subr-x byte-opt bytecomp byte-compile cconv init-site-lisp cl-seq init-utils init-benchmarking cl-loaddefs cl-lib derived early-init iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 1524406 530432) (symbols 48 81700 151) (strings 32 312418 63333) (string-bytes 1 12192584) (vectors 16 133974) (vector-slots 8 2581686 711833) (floats 8 1701 7648) (intervals 56 36559 8126) (buffers 992 93)) - Troy me@ntdef.com From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 12 04:02:12 2022 Received: (at 53191) by debbugs.gnu.org; 12 Jan 2022 09:02:12 +0000 Received: from localhost ([127.0.0.1]:56238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7ZWG-0004Cl-2L for submit@debbugs.gnu.org; Wed, 12 Jan 2022 04:02:12 -0500 Received: from mout.gmx.net ([212.227.15.19]:39811) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n7ZWE-0004CU-7v for 53191@debbugs.gnu.org; Wed, 12 Jan 2022 04:02:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1641978121; bh=X70y8dEUOg1P6dm+im+pKh04ErvmwaVIIXulZnWZ9MU=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=fu1D/jV5DXUVpu3D3NVFzIm03QYquIskh47NN69ZbOPpL51QzD3C64MwuLCn0mwFF Y3UspYnm7UeUOfKYtvkwo6HvY7h2W7whhXd98E4WwQpmF+FiNIDNodsPfnr5UDutYW xKicuge/lne6aTwWU50ZGFnwgQho/RYmlcnAzUcE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([213.220.149.188]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5G9n-1mOifk2yCT-011BBp; Wed, 12 Jan 2022 10:02:01 +0100 From: Michael Albinus To: "Troy de Freitas" Subject: Re: bug#53191: 29.0.50; file-notify-add-watch fails for socket files on MacOS References: Date: Wed, 12 Jan 2022 10:01:55 +0100 In-Reply-To: (Troy de Freitas's message of "Tue, 11 Jan 2022 10:22:01 -0600") Message-ID: <87mtk1pbss.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:LwgefECWdfnvleUm02RZhgfiHEURg7co3wdoiv+lDwaEd7LU+GW naNM/IPByKS6Me/yKa9PaQN35lqUDX4FyYIYrxV2peZiZ4y180rfgJk/BjEKvJ24GAkDWbH 9ExeWPy4T/52TXKVFDYzQl/YJCwgzzoEM1s1C1pypXgzj+MW0vYOSrfzT4dvSQkNOe+JpJu cR/N+zQaGliGcdyCQH6Pg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ZckTfKWSrNk=:SeE08j3IJbfSru+7x6IANB azZ+g77feb8bZ4ZCt7FWt7Ias3/a2yijx4IJsJ+GW3y5vY0tYbzqqWtlZa82Keh9W8fULBSFq vGtsk5q3R9Ndk9eHCRV520ZTw6cPh5jO+nYNTcyTBlbiVWswWyhDav+WlqzPisSRiARiuwpgv x0drQ3S0BbhQ9bPcNzczFnsioor1v4dwvHjpscyomChe75Yn9ucwg40LbcjVgTfEJjAg9N4hy dy7LnIuLFtUKqrQ0LCVdbzYGCJVi7EX/XfdXnZbyMtMLdccXHvliemfA4gh+yT+nRziaXJLQ4 fsT6yaYv5nSSaYws6zpZxL6Vy58fuYlhdg9wePRvc9F/vZ+nrFyy3fdRgWOBrEybttxa0bQ4m VFXrirJLir6O9PeydDPdexoHrWDnvOLp46PIXw0E5yZl6OopCMUtD6fz5kv8K1aTbXKvJgJ0k ZX46HslgfZXD0yuPczeSDcAiDkqMwbptzdYPMJem/3VtwOlcNJiJP0sokQ2lFZGFIsgACv+ho xj3FEA9AeIehonFrN3Abf5bh//3vZIb8w9yuGcUWqc1h58F70nKgW/LC9vX+iEaaIYMuNj4kT YhG6eAMyduaN6AedtvyiuaQiGiGpwipocfyLs3u0StaIGsKmuJmU4UIrI6dfsWX1wjv4dfbdp UZB1aGPmhGKkVS3gSIrso2kqjwu/AHzkCvTr0Rud3dae7fZxgQeQ7Fu8J4V7VIkqTfh7vZJlQ oGd/T7xeNWFAlzpPZzl+5yRyZH2RwaO9USjZdldc/XrTh954zqxPZQLL7/BGYLdUFEgWwukaQ qF9enoxf2SGYpZdUjrw3TofvdE+9UiAV/+D3gpT/sNICx4LeuARUSHvvoF44K1s6Io1QtceC9 3nLCkezk0vev4tOkFf6ugnunWMgnbJruth57ghaf1Si8tnyLMu+0wvrvv3R8F/pZtkG3wlzZ7 2wMXoVPE+GVAi8KQVray+hp22/ZiQOhjlNMWgctbuRhRrM+K9SPtNrVY5zKQAmT1Y2f6ZClGI L7Z3y3BYIi/gjKD6u7YdA1JBGrPBmTzM7Itr+gfuUjUJRoqUEYQ1tOFzH9EhIpO26VqqRmmai v0RtzEkVO48zro= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53191 Cc: 53191@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) "Troy de Freitas" writes: Hi Troy, > This bug affects MacOS (and most likely FreeBSD and OpenBSD as well). > On MacOS running `file-notify-add-watch' throws an error when attached to a UNIX socket > file but works fine on Linux. To reproduce, using 'emacs -Q', evaluate the following elisp: > > (let* ((sock "/tmp/netproc.sock") > (p (make-network-process > :name "test" > :family 'local > :local sock > :server t))) > (unwind-protect > (file-notify-add-watch sock '(change) > (lambda (_) (message (format "%s changed." sock)))) > (delete-process p) > (delete-file sock))) > > It throws the error: > > edebug-signal: File cannot be opened: Operation not supported on > socket, /tmp/netproc.sock > > The issue appears to be in the underlying call to `kqueue-add-watch', > which uses `openat()' (by way of `emacs_open()`) to get a > file-descriptor. According to the BSD docs for `openat()', calling > `openat()' on socket files is not supported. 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. See kqueue(2) for details, if you're interested in. > - Troy Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 09:45:36 2022 Received: (at 53191) by debbugs.gnu.org; 15 Jan 2022 14:45:36 +0000 Received: from localhost ([127.0.0.1]:39597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8kJE-0003K7-AL for submit@debbugs.gnu.org; Sat, 15 Jan 2022 09:45:36 -0500 Received: from mout.gmx.net ([212.227.17.20]:53649) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8kJB-0003Jt-TH for 53191@debbugs.gnu.org; Sat, 15 Jan 2022 09:45:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1642257925; bh=XJL1D7RUDXY5PcViAfo1iuBJa9LNdxR8kNmUu0neHDA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=EeB1zUgtZE85QLIrMjHfnog+9luKsXnRZ9HCNQ8Up0PIzQATJHIsGE4uWPiGO7mIE Cn/SmooucZovsvdXTKVHzWJC/wXsIKJpA0RRELw5hUTWT70sgfeBhKti7ItchNP795 5X0edgClS9CrhnjxI5XzD5lWg/Zn1/9ux+iv9PlA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([79.140.118.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MhU9j-1mdWA32vul-00egAU; Sat, 15 Jan 2022 15:45:24 +0100 From: Michael Albinus To: "Troy de Freitas" Subject: Re: bug#53191: 29.0.50; file-notify-add-watch fails for socket files on MacOS References: <87mtk1pbss.fsf@gmx.de> Date: Sat, 15 Jan 2022 15:45:23 +0100 In-Reply-To: <87mtk1pbss.fsf@gmx.de> (Michael Albinus's message of "Wed, 12 Jan 2022 10:01:55 +0100") Message-ID: <877db1ys58.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:+o8P/nBOxcvTDo33t45J8w0550+tGXKvs0JOgTMZyi15qNmiGNm vDwiwQzY+xX15GQXR+hp1MPyc3s4AeUP6Hy6cPVFzqVG+iSXX1vbNCbeBy+2sxJnAJ22CaG eJIseG3uHeieezgqdcrtMc7YaUlmFQLDOMfyVwU1y23ZtNl5cOBSQcy02M+6TKUG/lfp5uQ Bxca0i77ocTIyiLWBW/HA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ZU/lga4Dank=:OnEg6QRHAlemzoEDCr7Aww z6vMPsSQeAzBaFvOBdUxtuk9uslNFXMQLX3QMxaIWu0x0+OWW6aNQ7nsGvrGIlenEviYInDzz QzXJ3LbpwKDybpg8oqSjT9I8sZki+0v7LRafXj7ydHOaibJgrBSg7m71AzbuXzrIWxXt+INPZ ecyQ55UYnsuW8/gkLfO4Ut61aAe5m9e+mXe5yG5AzzEsSb00Iqrc7CgJQfuvVfIJn1TPsExP9 uL0hG2CdER2ljoa0uRSPFg3LG6JWeBlntPFbJXcAovtMuybjQInbkKfwTLr+WlybQ1G1jxput LWibM1qJXHNEMz31rjZoVkj0Hc9Fq1XtW0PHS1uLWlHHUBBCyIORGcmAXfXdkT1akLBeXBM2P d6GUQlLLae5vb+/6zTYF+LFz0Qc3J7feJijlQ+v0UbwK7Ptuqde4HITYp8DePefe4hpowwTj/ bFK9PdOH2lxDSSnkgQ4MpNmRiIG1vvUqGjZuKB+wQoeHsxlsFFsIY87CJUA+AX8zuXlnAGqFL WLK6T5DEs7gxfwMkwCsweSmcfgsdHgAKrCFAgEejE13tFpM3POGcpT7HgMTO4CeXmh22f7PRW h3iemCB6BWnqMsWmhEGiyzZnVCt98gjJdifV5DnbLTsu+TBz/lKf6oQq1NUG8C3KJAYi9HbSB 4S84Ch0YdUUYsMXYWQmvp2W9yQn7fl/ebIe4DuLXCUrehn/YibZBE9P4r54ziACPl/jGh3DyG zZJgKiLzRCcGgJ55amn83+L9r/FLIUaOrbv5V1a03qMEw9wrhfiGUqiQCvdqpnVk5bDW9zqIJ 00o11r00EzJzD9Fp5LHyk+mEoFzHwZXnN1XRkQFCWwnfxxDbHkq2MZ+rglT/s1FfnfqEUyJf7 B31/AP800dczPLocsv/sRx3lWDNm1v9ccgCcouILpskMjc3i4PijQSeePfnkTg0xnVT047bCn tRgyd4q01qnpqgKuLhvixKx60LyvLgPzKKyT6PIxJaVUH+mWiLktN4/MZoaKLTfyaYYomD+XJ lCMRE4GxnDDI3eQux1VVhSM9OOYs7g19VimzxHbXFT5cP38T+guyYEu8+YwNyz82Jumbat1Hz abQPV7dcRN50yk= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53191 Cc: 53191@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Michael Albinus 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 12:37:59 2022 Received: (at 53191-done) by debbugs.gnu.org; 15 Jan 2022 17:37:59 +0000 Received: from localhost ([127.0.0.1]:41647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8n03-00009s-76 for submit@debbugs.gnu.org; Sat, 15 Jan 2022 12:37:59 -0500 Received: from mout.gmx.net ([212.227.17.22]:37329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8mzz-00009b-AQ for 53191-done@debbugs.gnu.org; Sat, 15 Jan 2022 12:37:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1642268266; bh=XvIwN4ifJKAAO0V+/cd5rc4I8WvjszODJymVDA7GX9I=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Wk3GNz5bNuPbQs3QAeCKD7wJUkDkovEmFUG/A74uzQBAgrmRKZ/0cqGp800d669Qx eaOQ+fb3p86JTgyEYzxl88JG3s9rMXxZQ37MnRBar3QCQzzmx9LQ7rmg/3Hw129X9I GVxxwUaO88ORMsAStNNe5NCJVI5dVkoG5hY19JF4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([79.140.118.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MbRjt-1mbfEZ1GLx-00boxk; Sat, 15 Jan 2022 18:37:46 +0100 From: Michael Albinus To: Troy de Freitas Subject: Re: bug#53191: 29.0.50; file-notify-add-watch fails for socket files on MacOS References: <877db1ys58.fsf@gmx.de> Date: Sat, 15 Jan 2022 18:37:45 +0100 In-Reply-To: (Troy de Freitas's message of "Sat, 15 Jan 2022 10:49:27 -0600") Message-ID: <8735lozyqe.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:7+sKd8Sqe7Lrus9CelPMNLET4yL6xlmFCJRSjZkwOyQV7rux29k YuyoU1mwdGb19vRtKrYiSbsXUTuG9dZHHEnCsPQm/JuHGsDINkT1ruFhdYtD0fqsS/p29So fY2n2H1hJGj7fNJPdye9VZepN2TWPnCIQU+A6woY1RvVX0/KD9FfcB8Rx+riB8X4kXmkvop 7NP8h/gPXTp63n3BX/WBw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:zEC6uPUqrBk=:4EI0O/JnLEWCGSlNDcJqio 6PjPZR5iFPMIXslvwhjcrYpbE4mPNqcSgfgo0SX223uhrp29HzkN+7qRWZWR6PPr73n9w0TOK WxgvV/X//lWq9hUfJ5e19dHlLwnGl5MzDXpPlpPeOxzVa71i6oGKAVBSShMr6MP5FHJabcyj9 mHVUrK3Z5ScLf7mKQFBUsXo4/XeVf7bGd4B8fSFdxctABW5Ua/433NgHXcHNtoK2Mlowz7y18 vtjVDFNnTPWFEBDbAqs0G4aNYkLpCw6M+BLO0W6BWffPJRgOiBvktgEFc+AEd7ZBhegX1pLlI rM3wohCowsk09rHyXcx1IYwiDkWvCv4ps2KsiMwGSAIAjS48rmjqPyUFynkY5OgGCIBLmtasf XoC61urfSnEC0eSbpdDjFgsHqFkg7G8V6JLIGis7Til/BPbPtdZUBIk3B9k8N+/SKledWXT/B N4+BSV897FG3tyz1rFaY8vIGZFyfBx1v80p9MKfm13PDcekWfjOE8onuRxLVcBakdGlGdQ7un GUCbXuN2efv5oOWmsWKSZ7gfS+f190arPU1oJwdzEjukCv94cDKVoxa4ITepfI0dDvNDojZA1 rpu8O7qkgc15FbkPOu2ewS4pxC7ZJhAXPAcW82eK7QZ8G9r0eyyC/K0oFGGYFJlfv4z4eq+Ax c4vnqTq/jT/bZfFdcX2AWJRulmPxl2a9ZcAL0nQ59M9fIpbwaN2zZdddK0MJfutnVdLbf84eN 0FbnqPAff7/P7sw/IqA9bpbYyyV7bzfJrKea7AXCychNUVIskRY53TViDezzgF3lUzGcNQTdB CScWuXXVWt19tslnnXytw6bQcpzDVQWnWbxhh71nvDAtwHnjUA0lmj7vwyQKfdwHH0GtSlrDg zB0jEATnOHfCZBEKF4KsjtDwZ2eEqBnjJxrVG0sUnqd4ahV8bP7bn8VMhUOsGhkCa4rdoPCT+ bbBD4bQvSuwTn+8v9xCYTGSqhUDXNUmmnYuywdTj7hG8Z5qR449NhQjK2a10lk5y4M15HAFT+ 7FAjOGIJ7NfpN7GG664x44Qk7jRcc537noCikpf+59QVmWp2zr3UIOgE4Sb9cauXoQ7ki0O6u x71nE3V5ApSObw= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53191-done Cc: 53191-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Troy de Freitas writes: > Hi Michael, Hi Troy, > Thanks for looking into this. Actually, all I wanted was to be able to s= ee when the socket file was deleted. So watching the parent directory would suffice, indeed. There's nothing left to do; I'm closing the bug. > Regards, > Troy de Freitas Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 12:41:52 2022 Received: (at control) by debbugs.gnu.org; 15 Jan 2022 17:41:52 +0000 Received: from localhost ([127.0.0.1]:41654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8n3o-0000Gb-M7 for submit@debbugs.gnu.org; Sat, 15 Jan 2022 12:41:52 -0500 Received: from mout.gmx.net ([212.227.17.22]:47377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n8n3n-0000GO-HV for control@debbugs.gnu.org; Sat, 15 Jan 2022 12:41:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1642268506; bh=VaV6s32jr8xYvqrgSwNt9txC9WgiwcC0K23RnU352g0=; h=X-UI-Sender-Class:Date:To:From:Subject; b=M5HaPcGSLPQ+9QLUqt8acqjJnyVk9386Fq/fTdTi5sPAwQpCtqAZmMY9/RjrzH691 4v5/ZeWNsWRcA2DE/NMCD/CcDjZBo4tIRKK+6MNtuEqFGEa8XSC9CIUrOon3re7r9J Z9brQkI3up3ILYp/3c/C6t8uWAOJcRyEFL0qDE94= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from gandalf.gmx.de ([79.140.118.160]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MWzjt-1moqOm3Ioj-00XHQI for ; Sat, 15 Jan 2022 18:41:45 +0100 Date: Sat, 15 Jan 2022 18:41:45 +0100 Message-Id: <871r18zyjq.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #53191 X-Provags-ID: V03:K1:F/8q9RLQsajeGRC/NOayme6T+A9QqWky6F4G6JXpDjz4d/3LZEX BmT58TOiqnllXAxO+a2R9Yh/V7gTcy+KzcGdwDgWLqAmU3K9DZU2bB7TS+Sg96uJi76HL8M 7X6ruiubZ75ixFLNOJJ3NQRIGodkFrekzLyMVahfna+E2WCH83VTmxx+ZL6xuuGSeugI1Xv vEZrX2BMJeOjPRysGtdIg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vhxnzXuk354=:Oi/RfR3SxFPcxxLFrP5NlB Q81mQCtat2wuKOADozi8HLVUxtHL7Xtqbw0ADHz5FEzAtmBpDY1eldddGsc2dTWBsVd7ydhMD tLnzxOtZdR0NnMg+sWmxQYR+L0eFml7TEfTY/tROHrYcNFPchp9uMw1FZiXaah+yJwv0+XhTu 55mUGVGzF9cFvDJeG3OYqJB8zaBUqKgfvLdpkF7v2kyn7h1S0lPsIBZvahVwy0yyQJu1Y7lqt 9RPUMxp1SGwVjToLWcS+RioahcHwdchlZRu6YNO6A7lVpzJXmBproULTZm+b5/KibWttfpio1 gDtjO2+wQIuMePXTGX/NcJ15LxDp3r2YviqsJKMQJVSHvb/dr6zXJJ/YAiPgw0sI5GMW3+f5R GLrTdOEmKfso6xFOuKWTAb4muf3e4dUBAoRRwTFX09dJ5tO1TfPf+dRoxbr4mLvU9o/afmDYg uUadtuDYt8ACbQdMDdW5hVtSYAss3XOIm1m4K6vEs2CV1dIfmM/ymsZyeqAdOYGAhc1rj8hwj utieHj7Ivpjj5WsaMKf9L5vc74kkTnCAD+0PF0cEQS8WkkMpEIiIX8R0Cq5mg/IAYrHEzmpt/ s6mSu4FKHN3nIAtn5e8vkqUq4DVxRv+QmA507CHFj4MzcTbGlHCUemaz8PRPE2I4V4IGwTegc LNnitcLkNnO2gh3Y26U7dJ/1G/tKricvD9NuBlbXusUN5J0yW2M8JfMsLcACZsgTcoh9wt+am mqdg8xqCA8XWUS26tI5f/uxOpBhw6A6/4YMu+Df7cw5M35y1QxGorfXELzj7FEyQ2+HM3P4BH d6cwo4rUgxJmJRgDoEHkfgfKakI01EXX65jkKp0pXzftXSb/jmiA4JmiKvqniQx7nTXG5dalY Gyr91Urt/d9Ypd6gSX90XbPWsds57eDbIfy2HUwEIHshAFGxv4+BO7XomzV5TX9/tiL5DWoQ6 bMs6P8mQ9k2fjVg+MrjLN4zeFIEiEAPy6bZuFWjxvMYrbkcGIIwwIISQwOcGk2bQqCreDmFGC zcT4qVleLrCbr724H6uHKFV3zNNKu0q3Rn/dwthku56j4ijP8hqD18r2WImBUY4g/EBA0iMQb 82sCtC9cVSqzgM= X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 53191 + notabug quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 15 12:45:42 2022 Received: (at 53191) by debbugs.gnu.org; 15 Jan 2022 17:45:42 +0000 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 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 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) 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: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 15 Jan 2022 11:49:28 -0500 (EST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Troy de Freitas Mime-Version: 1.0 (1.0) 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 Message-Id: References: <877db1ys58.fsf@gmx.de> In-Reply-To: <877db1ys58.fsf@gmx.de> To: Michael Albinus X-Mailer: iPhone Mail (19C63) X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 53191 X-Mailman-Approved-At: Sat, 15 Jan 2022 12:45:36 -0500 Cc: 53191@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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. From unknown Thu Jun 19 12:34:49 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 13 Feb 2022 12:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator