From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 633E76DE02AC for ; Mon, 14 Nov 2016 10:52:58 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.086 X-Spam-Level: X-Spam-Status: No, score=0.086 tagged_above=-999 required=5 tests=[AWL=0.095, HEADER_FROM_DIFFERENT_DOMAINS=0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hkb6pV08XOmL for ; Mon, 14 Nov 2016 10:52:57 -0800 (PST) X-Greylist: delayed 531 seconds by postgrey-1.35 at arlo; Mon, 14 Nov 2016 10:52:56 PST Received: from tuna.imca.aps.anl.gov (tuna.imca.aps.anl.gov [164.54.200.33]) by arlo.cworth.org (Postfix) with ESMTPS id E607C6DE00D3 for ; Mon, 14 Nov 2016 10:52:56 -0800 (PST) Received: by tuna.imca.aps.anl.gov (Postfix, from userid 502) id 51CFE2005D; Mon, 14 Nov 2016 12:44:02 -0600 (CST) Date: Mon, 14 Nov 2016 12:44:02 -0600 From: "J. Lewis Muir" To: Austin Clements Cc: David Bremner , 843127@bugs.debian.org, notmuch@notmuchmail.org, Paul Wise Subject: Re: [Paul Wise] Bug#843127: notmuch: race condition in `notmuch new`? Message-ID: <20161114184402.GB23082@tuna.imca.aps.anl.gov> References: <87a8dfl8em.fsf@tesseract.cs.unb.ca> <87a8df9pp2.fsf@tesseract.cs.unb.ca> <20161113015107.GC5670@csail.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161113015107.GC5670@csail.mit.edu> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 18:52:58 -0000 On 11/12, Austin Clements wrote: > Quoth David Bremner on Nov 04 at 1:26 pm: > > I agree it looks like a race condition. inotify sounds a bit > > overcomplicated and perhaps non-portable? It should probably just > > tolerate disappearing files better, consider that a warning. > > Inotify really *is* the solution. I don't see how inotify can be the solution unless the idea is to make Notmuch run on Linux only. Inotify is a Linux kernel API. Some other OSes have their own native file event notification facilities, but not all of them have it, and most (if not all) only support file event notifications for certain file systems and not for others (e.g., not for NFS). Regards, Lewis