]> git.eshelyaron.com Git - emacs.git/commitdiff
* nsterm.m (ns_select): Don't return with result uninitialized.
authorJan Djärv <jan.h.d@swipnet.se>
Sat, 16 Mar 2013 14:22:37 +0000 (15:22 +0100)
committerJan Djärv <jan.h.d@swipnet.se>
Sat, 16 Mar 2013 14:22:37 +0000 (15:22 +0100)
src/ChangeLog
src/nsterm.m

index 06618a543e2e35c97d22dcc064e1321d502ba130..3a2a36c0cf747b575443cc905fa8a53d98905fbb 100644 (file)
@@ -1,6 +1,7 @@
 2013-03-16  Jan Djärv  <jan.h.d@swipnet.se>
 
        * nsterm.m (updateFrameSize:): Change resize increments if needed.
+       (ns_select): Don't return with result uninitialized.
 
        * nsterm.h (EmacsSavePanel, EmacsOpenPanel): Add getFilename
        and getDirectory.
index be586010c8107fb566d9b118e2c679145589f478..40e506eab2787fe3d9596598d50a69782b455573 100644 (file)
@@ -3601,6 +3601,11 @@ ns_select (int nfds, fd_set *readfds, fd_set *writefds,
           result = t;
         }
     }
+  else
+    {
+      errno = EINTR;
+      result = -1;
+    }
 
   return result;
 }