Commit 42d3022b authored by Jan D's avatar Jan D

* xgselect.c (xg_select): Clear file descriptors not set from rfds and wfds.

parent fb5f3a23
2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
* xgselect.c (xg_select): Clear file descriptors not set from
rfds and wfds.
2010-09-21 Stefan Monnier <monnier@iro.umontreal.ca>
* syntax.c (back_comment): Detect the case where a 1-char comment
......
......@@ -113,11 +113,17 @@ xg_select (max_fds, rfds, wfds, efds, timeout)
if (rfds && FD_ISSET (i, rfds)) ++retval;
else ++our_fds;
}
else if (rfds)
FD_CLR (i, rfds);
if (have_wfds && FD_ISSET (i, &all_wfds))
{
if (wfds && FD_ISSET (i, wfds)) ++retval;
else ++our_fds;
}
else if (wfds)
FD_CLR (i, wfds);
if (efds && FD_ISSET (i, efds))
++retval;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment