Problem with select on windows [PATCH]

Marc Lehmann schmorp at
Wed Feb 2 16:59:50 CET 2011

On Tue, Jan 25, 2011 at 12:54:20AM +0100, Bert Belder <bertbelder at> wrote:
> See the attached test (both files needed).
> Okay, the problem isn't that the handle doesn't get updated, but merely that
> vec_ri and vec_wi in contain the handle that *was* associated with the fd.

Sorry for the delay, I now have a prototype patch that you could try if you
want (feedback would be very appreciated). Unfortunately, it is completely

The basic idea is pretty simple: whenever the handle changes, we first tell
the backend to remove all events (backend_modify (.., 0)) - the existing code
should then re-arm the backend with the desired watchers.

If that works then this or a similar patch will be part of the next release.

Thanks for analyzing the problem :)

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

More information about the libev mailing list