> It is replaced within win32/win32.[ch].

Ah!  Thanks.  I'll have a look at that code.

> n should be the number of non-socket fds, and they should be 
> set in readfds, writefds and exceptfds respectively.  What do 
> they hold after the failure?

I'll have to retest to make sure, but I believe they were untouched.

Ben