Commit a36fb15e authored by Jan Djärv's avatar Jan Djärv

* nsterm.m (ns_select): Count fd:s in writefs also.

Fixes: debbugs:12422
parent 7b9abf24
2012-10-14 Jan Djärv <jan.h.d@swipnet.se>
* nsterm.m (ns_select): Count fd:s in writefs also (Bug#12422).
2012-10-13 Jan Djärv <jan.h.d@swipnet.se>
* gtkutil.c (xg_set_widget_bg): Divide by 65535 (Bug#12612).
......
......@@ -3444,7 +3444,10 @@ overwriting cursor (usually when cursor on a tab) */
/* NSTRACE (ns_select); */
for (k = 0; readfds && k < nfds+1; k++)
if (FD_ISSET(k, readfds)) ++nr;
{
if (FD_ISSET(k, readfds)) ++nr;
if (FD_ISSET(k, writefds)) ++nr;
}
if (NSApp == nil
|| (timeout && timeout->tv_sec == 0 && timeout->tv_nsec == 0))
......
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