From: Jan Djärv Date: Sat, 16 Mar 2013 14:22:37 +0000 (+0100) Subject: * nsterm.m (ns_select): Don't return with result uninitialized. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~2026^2~559 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6615748ac6bcff258ef548f70bdcc1ab9f740472;p=emacs.git * nsterm.m (ns_select): Don't return with result uninitialized. --- diff --git a/src/ChangeLog b/src/ChangeLog index 06618a543e2..3a2a36c0cf7 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,6 +1,7 @@ 2013-03-16 Jan Djärv * nsterm.m (updateFrameSize:): Change resize increments if needed. + (ns_select): Don't return with result uninitialized. * nsterm.h (EmacsSavePanel, EmacsOpenPanel): Add getFilename and getDirectory. diff --git a/src/nsterm.m b/src/nsterm.m index be586010c81..40e506eab27 100644 --- a/src/nsterm.m +++ b/src/nsterm.m @@ -3601,6 +3601,11 @@ ns_select (int nfds, fd_set *readfds, fd_set *writefds, result = t; } } + else + { + errno = EINTR; + result = -1; + } return result; }