]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/evtloopunix.cpp
fix typo (missing closing brackets); add some comments to wxKeyCode; no real change
[wxWidgets.git] / src / unix / evtloopunix.cpp
index fbaa4c775a5f3811a3e701b50297dbb4fd8d8c79..b439c4d4664b4f871973739e7187fdd2bf5d0699 100644 (file)
@@ -92,7 +92,7 @@ void wxConsoleEventLoop::PipeIOHandler::OnReadWaiting()
     {
         const int size = read(GetReadFd(), buf, WXSIZEOF(buf));
 
     {
         const int size = read(GetReadFd(), buf, WXSIZEOF(buf));
 
-        if ( size == 0 || (size == -1 && errno == EAGAIN) )
+        if ( size == 0 || (size == -1 && (errno == EAGAIN || errno == EINTR)) )
         {
             // nothing left in the pipe (EAGAIN is expected for an FD with
             // O_NONBLOCK)
         {
             // nothing left in the pipe (EAGAIN is expected for an FD with
             // O_NONBLOCK)