ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_select.c
(Generate patch)

Comparing libev/ev_select.c (file contents):
Revision 1.46 by root, Sun Jul 19 04:06:13 2009 UTC vs.
Revision 1.47 by sf-exg, Sat Jul 31 23:00:11 2010 UTC

182 else 182 else
183 errno -= WSABASEERR; 183 errno -= WSABASEERR;
184 #endif 184 #endif
185 185
186 #ifdef _WIN32 186 #ifdef _WIN32
187 /* select on windows errornously returns EINVAL when no fd sets have been 187 /* select on windows erroneously returns EINVAL when no fd sets have been
188 * provided (this is documented). what microsoft doesn't tell you that this bug 188 * provided (this is documented). what microsoft doesn't tell you that this bug
189 * exists even when the fd sets _are_ provided, so we have to check for this bug 189 * exists even when the fd sets _are_ provided, so we have to check for this bug
190 * here and emulate by sleeping manually. 190 * here and emulate by sleeping manually.
191 * we also get EINVAL when the timeout is invalid, but we ignore this case here 191 * we also get EINVAL when the timeout is invalid, but we ignore this case here
192 * and assume that EINVAL always means: you have to wait manually. 192 * and assume that EINVAL always means: you have to wait manually.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines