emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r110545: * nsterm.m (ns_select): Coun


From: Jan D.
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r110545: * nsterm.m (ns_select): Count fd:s in writefs also.
Date: Sun, 14 Oct 2012 20:28:48 +0200
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 110545
fixes bug: http://debbugs.gnu.org/12422
committer: Jan D. <address@hidden>
branch nick: trunk
timestamp: Sun 2012-10-14 20:28:48 +0200
message:
  * nsterm.m (ns_select): Count fd:s in writefs also.
modified:
  src/ChangeLog
  src/nsterm.m
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-10-14 00:17:07 +0000
+++ b/src/ChangeLog     2012-10-14 18:28:48 +0000
@@ -1,3 +1,7 @@
+2012-10-14  Jan Djärv  <address@hidden>
+
+       * nsterm.m (ns_select): Count fd:s in writefs also (Bug#12422).
+
 2012-10-13  Jan Djärv  <address@hidden>
 
        * gtkutil.c (xg_set_widget_bg): Divide by 65535 (Bug#12612).

=== modified file 'src/nsterm.m'
--- a/src/nsterm.m      2012-10-12 17:50:39 +0000
+++ b/src/nsterm.m      2012-10-14 18:28:48 +0000
@@ -3444,7 +3444,10 @@
 /*  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))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]