From fada8bef05c36e3bae29f9442f8d32b024905207 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 30 Jan 2009 14:56:08 +0000 Subject: [PATCH] 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 --- src/unix/evtloopunix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.50.0