ev_stat inotify implementation might miss events

Marc Lehmann schmorp at schmorp.de
Thu Jan 28 01:49:37 CET 2010


On Wed, Jan 27, 2010 at 04:28:06PM +0100, Yoann Vandoorselaere <yoann.v at prelude-ids.com> wrote:
> Following this discussion, here is the patch I came to write. 
> This apply against libev-3.9 vanilla.

WARNING, this is an extremely dangerous patch which introduces a race
condition.

DO NOT APPLY IT.

> Feel free to include it, or not, in the libev distribution. 

All it does is break libev, as explained before. You need the extra stat.

> >From the local testing I've made (although some more is needed), this is
> working fine and fixes various problem that I reported.

You haven't reported any problem so far, and all it does is introduce a race
condition.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list