Problem with select on windows

Bert Belder H.Belder at student.TUDelft.NL
Sat Feb 26 15:23:08 CET 2011


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

Maybe. But if I reverse the close and ev_io_stop calls the same happens.

- Bert



More information about the libev mailing list