Hang in fd_ebadf function

Marc Lehmann schmorp at schmorp.de
Sat May 31 00:51:13 CEST 2008


On Fri, May 30, 2008 at 10:12:45AM -0400, Marc-André Cournoyer <macournoyer at gmail.com> wrote:
> Perfect, it works now w/ checking the EV_ERROR bit, thx Marc!

No, it doesn't - if you get EV_ERROR for this case then your code is buggy
- you *must not* have active watchers with illegal file descriptors.

The fact that libev tries to work around your bug doesn't mean it works
(in fact, you are relying on luck because this bug isn't 100% detectable
in libev).

-- 
                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