mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-07 04:10:27 -08:00
* nsterm.m (ns_select): Count fd:s in writefs also.
Fixes: debbugs:12422
This commit is contained in:
parent
7b9abf24ee
commit
a36fb15e08
2 changed files with 8 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
|||
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 @@ ns_select (int nfds, fd_set *readfds, fd_set *writefds,
|
|||
/* 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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue