libev epoll and EPOLLRDHUP

Marc Lehmann schmorp at
Thu Jun 13 12:52:14 CEST 2013

On Thu, Jun 13, 2013 at 12:00:38PM +0530, "Chaliha, Sayan" <sayan.chaliha at> wrote:
> I also have another question, something I've been trying to figure out without any luck: Is there any possibility that libev's backend_fd gets corrupted and epoll_wait returns either EINVAL or EBADF? I just upgraded to 4.15 from 4.10. I was seeing the problem in 4.10. Obviously my application code doesn't access backend_fd directly...

Sure, unix has no protection against one part of a process corrupting
other parts of a process - anything can close or change the backend fd.

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

More information about the libev mailing list