Problem with select on windows

Marc Lehmann schmorp at schmorp.de
Fri Feb 11 08:31:37 CET 2011


On Fri, Feb 11, 2011 at 02:03:23AM +0100, Bert Belder <bertbelder at gmail.com> wrote:
>    fd = _open_osfhandle(socket());
>    ev_io_set(w, fd, EV_READ);
>    ev_io_start(w);
>    close(fd);
>    ev_io_stop(w);

That's simply a programming bug, you tell libev to receive events for an
invalid (closed) fd - it's like closing an fd while trying to read from
it, or freeing memory while using it.

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