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
This commit is contained in:
Václav Slavík
2009-01-30 14:56:08 +00:00
parent f2335ba564
commit fada8bef05

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