From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.bugs Subject: bug#26973: 26.0.50; sleep-for behavior changes with global-auto-revert-mode enabled Date: Sun, 04 Jun 2017 17:30:15 +0200 Message-ID: <87d1aj7ou0.fsf@luca> References: <52366f47-5bf1-8eaa-f605-44d0def010aa@cs.ucla.edu> <87tw46w92f.fsf@luca> <1846cfcb-1897-e3d8-76fe-83be1c076c75@cs.ucla.edu> <87poeuvw9n.fsf@luca> <032db8d0-2694-4d02-2b5f-3b73508fee0a@cs.ucla.edu> <87h905wd7u.fsf@luca> <87k24svupk.fsf@detlef> <838tl7c0pd.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1496590274 7568 195.159.176.226 (4 Jun 2017 15:31:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 4 Jun 2017 15:31:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26973-done@debbugs.gnu.org, eggert@cs.ucla.edu, Michael Albinus , dgutov@yandex.ru To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 04 17:31:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHXUi-0001Xw-75 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Jun 2017 17:31:08 +0200 Original-Received: from localhost ([::1]:57321 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHXUn-00087E-L6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 04 Jun 2017 11:31:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57207) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHXUi-00086u-00 for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 11:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHXUd-0005P3-32 for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 11:31:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53286) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dHXUc-0005On-S2 for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 11:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dHXUc-0004VY-Im for bug-gnu-emacs@gnu.org; Sun, 04 Jun 2017 11:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Politz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jun 2017 15:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26973 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26973-done@debbugs.gnu.org id=D26973.149659022517280 (code D ref 26973); Sun, 04 Jun 2017 15:31:02 +0000 Original-Received: (at 26973-done) by debbugs.gnu.org; 4 Jun 2017 15:30:25 +0000 Original-Received: from localhost ([127.0.0.1]:55963 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHXU0-0004Ue-W7 for submit@debbugs.gnu.org; Sun, 04 Jun 2017 11:30:25 -0400 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:54050) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dHXTy-0004UO-U6 for 26973-done@debbugs.gnu.org; Sun, 04 Jun 2017 11:30:23 -0400 X-Virus-Scanned: by Amavisd-new + Sophos + ClamAV [Rechenzentrum Hochschule Trier (RZ/HT)] Original-Received: from localhost (ip4d15f86e.dynamic.kabel-deutschland.de [77.21.248.110]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 5DAF1179D72F; Sun, 4 Jun 2017 17:30:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1496590216; bh=/NEmXVtJrwtEtWwsdwnSWuzlDgE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=mTRvwZvQvlvtJtBoL/zwWlU3xqjH8jA2ZHKHjaiRxyuXhm+RpZ5rPOAQ2X0fpsQF3 r/ODfjpxUqpHHR5bM2w5sk6PCPoi029JmU0A9DBnW3d2p61kzoXlDgHwdYph8KoJjE bKoox85wUxXAfJvFzYpCrSDFOheHkKrfOdifoI60= In-Reply-To: <838tl7c0pd.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 04 Jun 2017 17:00:14 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:133258 Archived-At: Eli Zaretskii writes: > Like I said: I've lost track of this discussion. [...] Activating global-auto-revert-mode seems to lead to starvation of the collection of output from running processes in an inotify build. Inhibiting the generation of open, close and access file-events seems to have fixed this problem. This lead to the hypotheses that, in case the above types of events are reported, reading file-events while idling may by itself lead to the generation of more file-events and thus making this process stuck in a cycle. Autorevert resp. filenotify.el does not include these events in its event-mask passed to the various back-ends, such that this problem could not be perceived, unless the back-ends are used directly. (Except for inotify, were a constant, promiscuous mask was previously used in order to work around a different problem.) So, if the above is true, other back-ends could exhibit the same behavior, if they were to be instructed to generate open/close/access events. Again, since these events are not used by filenotify.el, it would only show, if the back-end is invoked directly, e.g. w32notify-add-watch with last-access-time. -ap