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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user