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: Thu, 25 May 2017 11:45:22 +0200 Message-ID: <87inkp9snh.fsf@luca> References: <707f822e-5034-4fdc-c7a4-96eb40454b93@yandex.ru> <83d1b3pxny.fsf@gnu.org> <8d022b79-20ac-a646-9a17-d7dff7cdf62f@yandex.ru> <837f1bps1n.fsf@gnu.org> <87r2zhxr8y.fsf@detlef> <838tlooikp.fsf@gnu.org> <87zie173su.fsf@detlef> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: blaine.gmane.org 1495705576 1781 195.159.176.226 (25 May 2017 09:46:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 May 2017 09:46:16 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: 26973@debbugs.gnu.org, dgutov@yandex.ru To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 25 11:46:09 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 1dDpLL-0000Hi-8B for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 11:46:08 +0200 Original-Received: from localhost ([::1]:59081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDpLQ-0002dQ-Cm for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 05:46:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46118) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDpLJ-0002d8-Nx for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 05:46:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDpLG-000251-Ey for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 05:46:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34274) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDpLG-00024v-As for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 05:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dDpLF-0003sH-K3 for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 05:46:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Politz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 May 2017 09:46:01 +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-submit@debbugs.gnu.org id=B26973.149570553514862 (code B ref 26973); Thu, 25 May 2017 09:46:01 +0000 Original-Received: (at 26973) by debbugs.gnu.org; 25 May 2017 09:45:35 +0000 Original-Received: from localhost ([127.0.0.1]:36951 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDpKn-0003rc-S6 for submit@debbugs.gnu.org; Thu, 25 May 2017 05:45:35 -0400 Original-Received: from gateway-a.fh-trier.de ([143.93.54.181]:48118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDpKk-0003rM-Gz for 26973@debbugs.gnu.org; Thu, 25 May 2017 05:45:31 -0400 X-Virus-Scanned: by Amavisd-new + Sophos + ClamAV [Rechenzentrum Hochschule Trier (RZ/HT)] Original-Received: from localhost (ip4d15f871.dynamic.kabel-deutschland.de [77.21.248.113]) (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 06AE6179C9F2; Thu, 25 May 2017 11:45:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=hochschule-trier.de; s=default; t=1495705523; bh=59pBByvAisigsEAz2psV8Ur87SM=; h=From:To:Cc:Subject:References:Date:In-Reply-To:Message-ID: MIME-Version:Content-Type; b=RM7Y1n/xVrBFXJ5sJc7jgVraI+uSl+h4PdBWy2CQtiFPZI5Ycr0vpFe/q2E/QAW+L n2lnsv2qof7D2blxoxrXnuhG7OfmfkxvVtc6bKjybTGXye9XRuukQipeJF939KEXd8 HsxJTJnTaM4dhBQVMzqUqER95zjyNzSng29kII/o= In-Reply-To: <87zie173su.fsf@detlef> (Michael Albinus's message of "Thu, 25 May 2017 10:12:49 +0200") 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:132821 Archived-At: --=-=-= Content-Type: text/plain I seems that the event flags used are to promiscuous and that this prevents other processes from reading. Removing ACCESS, OPEN and CLOSE events appears to rectify the situation. --=-=-= Content-Type: text/x-diff Content-Disposition: inline diff --git a/src/inotify.c b/src/inotify.c index 290701349e..d43b959747 100644 --- a/src/inotify.c +++ b/src/inotify.c @@ -41,7 +41,21 @@ along with GNU Emacs. If not, see . */ #ifndef IN_ONLYDIR # define IN_ONLYDIR 0 #endif -#define INOTIFY_DEFAULT_MASK (IN_ALL_EVENTS | IN_EXCL_UNLINK) +#define INOTIFY_DEFAULT_MASK \ + (IN_ATTRIB | \ + /* IN_ACCESS | */ \ + /* IN_CLOSE_WRITE | */ \ + /* IN_CLOSE_NOWRITE | */ \ + IN_CREATE | \ + IN_DELETE | \ + IN_DELETE_SELF | \ + IN_IGNORED | \ + IN_MODIFY | \ + IN_MOVE_SELF | \ + IN_MOVED_FROM | \ + IN_MOVED_TO | \ + /* IN_OPEN | */ \ + IN_EXCL_UNLINK) /* File handle for inotify. */ static int inotifyfd = -1; --=-=-= Content-Type: text/plain -ap --=-=-=--