From: Václav Slavík Date: Fri, 30 Jan 2009 14:56:08 +0000 (+0000) Subject: handle EINTR when reading data from the wakeup pipe X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fada8bef05c36e3bae29f9442f8d32b024905207 handle EINTR when reading data from the wakeup pipe git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/unix/evtloopunix.cpp b/src/unix/evtloopunix.cpp index fbaa4c775a..b439c4d466 100644 --- a/src/unix/evtloopunix.cpp +++ b/src/unix/evtloopunix.cpp @@ -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)