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.37 by root, Mon Jun 9 14:11:30 2008 UTC vs.
Revision 1.39 by root, Mon Jan 5 14:41:35 2009 UTC

177 #endif 177 #endif
178 178
179 #ifdef _WIN32 179 #ifdef _WIN32
180 /* select on windows errornously returns EINVAL when no fd sets have been 180 /* select on windows errornously returns EINVAL when no fd sets have been
181 * provided (this is documented). what microsoft doesn't tell you that this bug 181 * provided (this is documented). what microsoft doesn't tell you that this bug
182 * exists even when the fd sets are provided, so we have to check for this bug 182 * exists even when the fd sets _are_ provided, so we have to check for this bug
183 * here and emulate by sleeping manually. 183 * here and emulate by sleeping manually.
184 * we also get EINVAL when the timeout is invalid, but we ignore this case here 184 * we also get EINVAL when the timeout is invalid, but we ignore this case here
185 * and assume that EINVAL always means: you have to wait manually. 185 * and assume that EINVAL always means: you have to wait manually.
186 */ 186 */
187 if (errno == EINVAL) 187 if (errno == EINVAL)
194 if (errno == EBADF) 194 if (errno == EBADF)
195 fd_ebadf (EV_A); 195 fd_ebadf (EV_A);
196 else if (errno == ENOMEM && !syserr_cb) 196 else if (errno == ENOMEM && !syserr_cb)
197 fd_enomem (EV_A); 197 fd_enomem (EV_A);
198 else if (errno != EINTR) 198 else if (errno != EINTR)
199 syserr ("(libev) select"); 199 ev_syserr ("(libev) select");
200 200
201 return; 201 return;
202 } 202 }
203 203
204#if EV_SELECT_USE_FD_SET 204#if EV_SELECT_USE_FD_SET

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines