From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#18861: Acknowledgement (25.0.50; gfile-based file notifications are not immediate) Date: Mon, 27 Oct 2014 21:22:10 -0700 Message-ID: <87wq7kes7w.fsf@secretsauce.net> References: <87zjchdokj.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414470384 24417 80.91.229.3 (28 Oct 2014 04:26:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Oct 2014 04:26:24 +0000 (UTC) To: 18861@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 28 05:26:19 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XiyMK-0003Xv-U0 for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2014 05:26:17 +0100 Original-Received: from localhost ([::1]:37171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiyMJ-0004Jy-TT for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Oct 2014 00:26:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiyMC-0004Ig-Ka for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 00:26:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XiyM7-0000GM-Gq for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 00:26:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45007) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XiyM7-0000GB-47 for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 00:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XiyM6-0007vJ-IG for bug-gnu-emacs@gnu.org; Tue, 28 Oct 2014 00:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Oct 2014 04:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18861 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18861-submit@debbugs.gnu.org id=B18861.141447031430394 (code B ref 18861); Tue, 28 Oct 2014 04:26:02 +0000 Original-Received: (at 18861) by debbugs.gnu.org; 28 Oct 2014 04:25:14 +0000 Original-Received: from localhost ([127.0.0.1]:37105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiyLJ-0007uA-V2 for submit@debbugs.gnu.org; Tue, 28 Oct 2014 00:25:14 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58557) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XiyLG-0007u0-2U for 18861@debbugs.gnu.org; Tue, 28 Oct 2014 00:25:11 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 7498720CEA for <18861@debbugs.gnu.org>; Tue, 28 Oct 2014 00:25:09 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Tue, 28 Oct 2014 00:25:09 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:references:from:to:subject:date:in-reply-to :message-id:mime-version:content-type; s=mesmtp; bh=cXmRMQFFJHDI dKoTCkP7TcbWz/Y=; b=PRXJcBiXFEiN3xbTL9VHQUeTPbXa6cqQY2f2ECjRi/rj WJUxwv3mb6Fun5+0bd9MO1ClGhO4oN+PGzi7ui0RsF6ibCFoNJbVQIcq1xA1GbVY OnQKv01tMCS/ogZVhhT64Gw4oQPskpEwY5b/S91zRAfE2O0VetPIHM9E603THZE= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:references:from:to:subject :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=cXmRMQFFJHDIdKoTCkP7TcbWz/Y=; b=gVHIlLE+iBDm5zHWpX4K XV1jJf3uu4zjp/7PoFzPOGTPZ/nbE+H2wfh6XLDUZJN4fhrHJAYqTNevRvDS7fEK 183u17poaHR5jGsvVFIRgEtM/MUDInsLyVEi5HsJTzlaIanOjoXGxXGng5McJFWX V1FEd9Iy1bnfayjacWX4HnA= X-Sasl-enc: NTz4YsdV9DePUvP0YhSkcXCKPX/YH4LqK5FPjCQKHXZT 1414470309 Original-Received: from shorty.local (unknown [23.243.192.221]) by mail.messagingengine.com (Postfix) with ESMTPA id 2C9C8C0000A for <18861@debbugs.gnu.org>; Tue, 28 Oct 2014 00:25:09 -0400 (EDT) Original-Received: from dima by shorty.local with local (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1XiyLE-0001FP-13 for 18861@debbugs.gnu.org; Mon, 27 Oct 2014 21:25:08 -0700 In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95182 I just looked into this, and it appears I spoke too soon. The emacs event loop IS correct. It asks glib for a list of file descriptors that need attention, and then calls select() on those and on other file descriptors that emacs cares about. The bug is in glib. It appears that the file descriptors it gives you don't get any activity when a notification occurs, so calling select() on them does anything. Bug report: https://bugzilla.gnome.org/show_bug.cgi?id=739274 If I fix this bug then select() works, but there's a delay of about 1sec between when the file modification is reported by inotify and when glib tells you about it. This is yet another glib bug that I haven't yet looked into.