libev issue due to inotify bug

Marc Lehmann schmorp at schmorp.de
Wed Oct 15 16:13:29 CEST 2008


> Before 2.6.25, inotify did not notify the user in case a file st_nlink
> reached 0 (IN_ATTRIB event). This is problematic for application that
> wish to be notified of file deletion although they still have an open
> file descriptor on the deleted file (they never get any notification
> about the deletion). 

In response to this, libev has been modified (in CVS) to avoid using inotify
on kernels <2.6.25. The version check is somewhat ugly, it would be nice if
somebody else looked over it.

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



More information about the libev mailing list