passenger's modification to libeio

Marc Lehmann schmorp at
Thu Apr 23 23:55:43 CEST 2015

On Thu, Apr 23, 2015 at 12:02:11PM +0200, Hongli Lai <hongli at> wrote:
> The reason for introducing these changes is for the purpose of
> debugging file descriptor leaks in Passenger.

The problem is that the patches don't do that, as libev can change fd's
without notice, which is why the API is not sufficient.

Since passenger patches libev anyways, and this is just for debugging, it
probably would be easier (and certainly be more correct) to actually patch
libev's implementation directly and put logging code around epoll_create,
dup2, close, pipe, inotify_init etc. calls.

                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_    
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at
      -=====/_/_//_/\_,_/ /_/\_\

More information about the libev mailing list