From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: A project-files implementation for Git projects Date: Sun, 22 Sep 2019 12:23:26 +0300 Message-ID: <5560abee-e566-7234-7a31-ad12209ba4a5@yandex.ru> References: <8736h9rdc4.fsf@gnu.org> <87pnk2zvvy.fsf@gnu.org> <838sqpx9eq.fsf@gnu.org> <83y2yow9dy.fsf@gnu.org> <838sqnw2na.fsf@gnu.org> <3007947f-f4eb-e3e8-8c14-1b372323aa1c@yandex.ru> <831rwfvzd6.fsf@gnu.org> <64bcedbf-d891-dcad-ac65-5719920f58e2@yandex.ru> <83k1a4tct2.fsf@gnu.org> <83tv97run8.fsf@gnu.org> <5ba04bf6-ed74-a18e-9074-5aa481ec3669@yandex.ru> <2c78a9ac-c535-bc18-8da8-30e121484929@yandex.ru> <87sgoroy48.fsf@gmx.de> <83o8zfrqe6.fsf@gnu.org> <04c74ccf-e86c-e5e2-f4f6-ec0c2bef5486@yandex.ru> <87k1a3ovpu.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="164602"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 Cc: Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 22 11:24:07 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iBy6B-000gfn-DH for ged-emacs-devel@m.gmane.org; Sun, 22 Sep 2019 11:24:07 +0200 Original-Received: from localhost ([::1]:45872 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBy6A-00061X-1U for ged-emacs-devel@m.gmane.org; Sun, 22 Sep 2019 05:24:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36697) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iBy5d-00061P-5E for emacs-devel@gnu.org; Sun, 22 Sep 2019 05:23:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iBy5b-0006pA-Vi for emacs-devel@gnu.org; Sun, 22 Sep 2019 05:23:33 -0400 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:44272) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iBy5b-0006om-Ok; Sun, 22 Sep 2019 05:23:31 -0400 Original-Received: by mail-lj1-x236.google.com with SMTP id m13so10792824ljj.11; Sun, 22 Sep 2019 02:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=oEPOCOmlMsEBzh9pDuqPwF0lVoPHQaFQfOR0mMpi0hE=; b=k/yu6maCTxnEKw+qHrgRv6G1WMtRQWVackCxRndSR3fa0cnVnGIdYgPUcq6qLzeVQ1 hg2ICC4oPBZ6iky5fSoHyhAYKkUJiRJjDwJTXsBYsG7jhsUK3LP3tvuboTgiQjAwSaFh nVAdjzmEMPDjp1GbP1OsIUX0njygVfSxPYFpzQaso6KxYOxDCtjpgqvXTUZ9bdmzP0tN MjCOb4Y5KMEbFVP9Z7xw1K9XRH2jrILrWEAqpnUfHQB/KVwZ8BU+Li3NtThyBZsnoe5y vMUBVJTyEwisWyT2Dc9JZsd/4mbgcNyjcfhy9FWQe35HFEZ9ZIbh7gXmLhTzSdrBwkqi su6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=oEPOCOmlMsEBzh9pDuqPwF0lVoPHQaFQfOR0mMpi0hE=; b=eKVGjP3dMwpN7Hs+nTESMEZjez4+S9MRkNwOivhwOaDp3J+RTcyaa2hluS8DSgCy3u 43q7aZUmn0MdQF5UrBNj/iA4HU5jtuSxE+/6frKFB+2LMDh+8dnX7DDuaIGHCGgkYInz 66yUdeLf7KkqoMI8ssZdsIxZu5lW0DC6WSGnoIhJQ+k/fkymfZv0RLnbkos6u4MED8eU qYcuYGK0TD1Vcp5N0S6cIvcqmY/liJCf1To8Xi4wSkl4w5XnXxpocBZmyNfaNJnhl9s4 SMtND7HqWq0kclKlNhIAm6Lm/Jp4cm/gVxSgBVFL0qB+5EEbKRxnh1AJFMq9vhTXfJSi yaaw== X-Gm-Message-State: APjAAAXnZDz9tk4g2mDdm6fzy6DnpRmuSg5M/RdbG/+qNf6W/o516Sdt TecsPT48/NjjFqtmNCERC9ZKj6PUsi0= X-Google-Smtp-Source: APXvYqy6ktJBkyXqfRU0VtM4cGeXlyXDLRKAtNXKsph6HJzU384izCcQi3O9/SAeql2Prr80hknARg== X-Received: by 2002:a2e:7016:: with SMTP id l22mr14477157ljc.39.1569144210096; Sun, 22 Sep 2019 02:23:30 -0700 (PDT) Original-Received: from [192.168.1.125] (87-242-55.netrun.cytanet.com.cy. [87.228.242.55]) by smtp.googlemail.com with ESMTPSA id o2sm1501069lfl.20.2019.09.22.02.23.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 22 Sep 2019 02:23:29 -0700 (PDT) In-Reply-To: <87k1a3ovpu.fsf@gmx.de> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:240234 Archived-At: On 20.09.2019 18:04, Michael Albinus wrote: > Dmitry Gutov writes: > >> I think this would require two events, though: queue-overflow-start >> and queue-overflow-stop. > > I'm not sure that inotify signals that a queue could be reused. It must > be arranged by the client. inotify(7) says > > Note that the event queue can overflow. In this case, events are lost. > Robust applications should handle the possibility of lost events grace‐ > fully. For example, it may be necessary to rebuild part or all of the > application cache. (One simple, but possibly expensive, approach is to > close the inotify file descriptor, empty the cache, create a new ino‐ > tify file descriptor, and then re-create watches and cache entries for > the objects to be monitored.) Ah, okay. So I guess the application can enter the "degraded" mode and then add a timer to try and enable notification-based operation again.