]> git.saurik.com Git - wxWidgets.git/commitdiff
handle EINTR when reading data from the wakeup pipe
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 30 Jan 2009 14:56:08 +0000 (14:56 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 30 Jan 2009 14:56:08 +0000 (14:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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));
 
-        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)