From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#66381: 29.1; Auto-revert not polling files when notifications are enabled Date: Sat, 07 Oct 2023 09:17:01 +0300 Message-ID: <83jzrz0xeq.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14195"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66381@debbugs.gnu.org To: Daniel Jacobowitz , Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 07 08:18:04 2023 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 1qp0dY-0003VB-3q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 07 Oct 2023 08:18:04 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qp0dE-0007Tf-M5; Sat, 07 Oct 2023 02:17:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qp0dD-0007T9-Hx for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 02:17:43 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qp0dD-0002pP-9s for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 02:17:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qp0dW-0001Dg-G1 for bug-gnu-emacs@gnu.org; Sat, 07 Oct 2023 02:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 07 Oct 2023 06:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66381 X-GNU-PR-Package: emacs Original-Received: via spool by 66381-submit@debbugs.gnu.org id=B66381.16966594374627 (code B ref 66381); Sat, 07 Oct 2023 06:18:02 +0000 Original-Received: (at 66381) by debbugs.gnu.org; 7 Oct 2023 06:17:17 +0000 Original-Received: from localhost ([127.0.0.1]:53210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp0cn-0001CZ-1N for submit@debbugs.gnu.org; Sat, 07 Oct 2023 02:17:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34156) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qp0cl-0001CM-0R for 66381@debbugs.gnu.org; Sat, 07 Oct 2023 02:17:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qp0cM-0002mN-2q; Sat, 07 Oct 2023 02:16:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=sXdK/jkUy4EzsgWgfRdn90OrcpyNImDZ/RM9+lYsuYg=; b=evB3+17Oae5p /xu2IJCWFuKqJmaE7nXT6T6kIwkwtcbGKhDZJRSwFfH/ofI+AMt7MzhpAza4cIdVmDzqPsJpJ9jrK YvHK8xOsStwLQ+iS9GaGteJeQPhO0mUpmLe3/kktWl4rtpbvdwpYhVRCyhiFtc+5WsR78Hvz7E6mt LNyHPIQYphCgdSLwENMF6JAfYVUl4gHa3w2iJibj+aN1zMFW8Ap2nPO/QGy3OHZuNlSCLS52oZhBn gOOeLcQLxchTiiiDCv00/Gz26vKWIh3ONuaL5uiMFOmpSfkoYV9C680YIqaUSSQJcDN0AB7XYJ1oA NeXsT8p7XeHfWsc0+7BK+w==; In-Reply-To: (message from Daniel Jacobowitz on Fri, 6 Oct 2023 13:13:40 -0400) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271974 Archived-At: > From: Daniel Jacobowitz > Date: Fri, 6 Oct 2023 13:13:40 -0400 > > I use a network filesystem which sometimes has to restart, e.g. for > updates or when credentials expire. Normally, file notifications work > fine on this filesystem, but after a restart the old notifications will > never fire. Documentation says "By default, Auto Revert mode will poll > files for changes periodically even when file notifications are used." - > experimentally the file is never polled. > > Ideally the notification would be recreated, but falling back to > polling would be > an improvement. Michael, can we reliably know when the watch handles are stale? If not, then users of such "restarting" network filesystems will need to disable auto-revert-use-notify.