From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anders Lindgren Newsgroups: gmane.emacs.bugs Subject: bug#22814: 25.0.91; Emacs runs out of file descriptors on OS X Date: Sat, 27 Feb 2016 10:55:42 +0100 Message-ID: References: <87twkupoq9.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11438ee830e25f052cbd6ba5 X-Trace: ger.gmane.org 1456566981 28254 80.91.229.3 (27 Feb 2016 09:56:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 27 Feb 2016 09:56:21 +0000 (UTC) Cc: 22814@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 27 10:56:12 2016 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 1aZbbf-0005L3-F5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Feb 2016 10:56:11 +0100 Original-Received: from localhost ([::1]:54164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZbbe-0001hK-RQ for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Feb 2016 04:56:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZbbb-0001gp-5R for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 04:56:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZbbX-0005XG-4N for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 04:56:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZbbW-0005Wr-Vw for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 04:56:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aZbbW-0003mM-9F for bug-gnu-emacs@gnu.org; Sat, 27 Feb 2016 04:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Feb 2016 09:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22814 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22814-submit@debbugs.gnu.org id=B22814.145656695014508 (code B ref 22814); Sat, 27 Feb 2016 09:56:02 +0000 Original-Received: (at 22814) by debbugs.gnu.org; 27 Feb 2016 09:55:50 +0000 Original-Received: from localhost ([127.0.0.1]:48171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZbbJ-0003lv-NN for submit@debbugs.gnu.org; Sat, 27 Feb 2016 04:55:49 -0500 Original-Received: from mail-vk0-f46.google.com ([209.85.213.46]:36416) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aZbbI-0003li-1s for 22814@debbugs.gnu.org; Sat, 27 Feb 2016 04:55:48 -0500 Original-Received: by mail-vk0-f46.google.com with SMTP id c3so97392991vkb.3 for <22814@debbugs.gnu.org>; Sat, 27 Feb 2016 01:55:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=9/D6t5IvwUFMjJs1PB227AY7cOxyA5IkqhAA/20oq7M=; b=MTph0WCUC/DZcsyrogj26dLPcU0d9bkm2vf/e2uf0tWy4EHsmkAhaV5BNo5/YCqyNe uxTp7f3HJoFP6NLqId5gHdVyaeN8WPesG93ANm5hJwE+CcGDqa5U6sKIYiJKbpjGUz4e PpqBxrw0GEcSrlWTItbF+LI5Co0d21cyLFBtMlGDxjObChMo4J7wtv0vCnpX37EPGCsf 4PH+7GpyzoG67u/mhDWN6mFCx5h/mRmX6QPq28aiO79hSSgrXW73J78NUQ+cuNog2xjw 6RAwADd6o+4Fc3YZE9M3gYJ+BO6qzQAWy68UonvnJ+5LqohidiyZhlCUOSiKpBPyE6pJ Dw+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=9/D6t5IvwUFMjJs1PB227AY7cOxyA5IkqhAA/20oq7M=; b=NaTaJEOViWyykqwDCOySUEHSvUUWRxCVWaqA8NHMK7nNYFPmkPBvT3JpDCDLwARxJU fYZML4bquKc0COSKUwgpk1bwhpLoPB6XRiNwtyZ22cECygo59HANoYYOIM6lFuapze7f ZbHUb6o+5fqcFSs32/qQtfEuPLfkeeFlwlee8CKDZPY20lQmcvKb7cJy3UUzZLp7VKGf bA28WiL7TqJ5zSwOeFHSwgE7h3IY2sFPGiUcGCBDEXzq+Wzo+Nfvkc5D8g2q00pVAzEe BCSr4wJCQoKQDNskIHvWTbqOYbeMA5P/uEpMSn+uvvg6UNAytowO6/xHAwAYh34xCwvW fGmA== X-Gm-Message-State: AD7BkJIJU5TKsowYStml9z3WVi1/trSvGLZpaD+zcXkRUDZLRFk1lRVfTPHkfdrTKua/siw+OMmUG71oiCrUSQ== X-Received: by 10.31.54.134 with SMTP id d128mr3900789vka.26.1456566942357; Sat, 27 Feb 2016 01:55:42 -0800 (PST) Original-Received: by 10.31.214.131 with HTTP; Sat, 27 Feb 2016 01:55:42 -0800 (PST) In-Reply-To: <87twkupoq9.fsf@gmx.de> 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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:113937 Archived-At: --001a11438ee830e25f052cbd6ba5 Content-Type: text/plain; charset=UTF-8 > > > If Emacs hangs because the file notification system runs out of > > resources (file descriptors or processes), it should detect this by > > itself and revert to other, safer, methods (e.g. the timer-based > > system). > > A general support for polling in filenotify.el is not foreseen, too much > effort. But I believe, in the auto-revert case Emacs works already this > way. When file-notify-add-watch returns nil, auto-revert falls back to > polling (to be tested, I'll I add a test). > This sounds like the right thing to do. The main question is why Emacs hangs when opening a large desktop (which is why I didn't want this bug to be closed), even though the file notify system has this fallback. -- Anders --001a11438ee830e25f052cbd6ba5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> If Emacs hangs because the= file notification system runs out of
> resources (file descriptors or processes), it should detect this by > itself and revert to other, safer, methods (e.g. the timer-based
> system).

A general support for polling in filenotify.el is not foreseen, too = much
effort. But I believe, in the auto-revert case Emacs works already this
way. When file-notify-add-watch returns nil, auto-revert falls back to
polling (to be tested, I'll I add a test).

This sounds like the right thing to do.

Th= e main question is why Emacs hangs when opening a large desktop (which is w= hy I didn't want this bug to be closed), even though the file notify sy= stem has this fallback.

=C2=A0 =C2=A0 -- Anders

--001a11438ee830e25f052cbd6ba5--