EAGAIN but only EWOULDBLOCK, which caused badness on HPUX. We also check for
and act the same on EINTR errors as well now.
may be EWOULDBLOCK or on some systems EAGAIN when it returned
due to its inability to send off data without blocking. We
therefor treat both error codes the same here */
- if((EWOULDBLOCK == err) || (EAGAIN == err))
+ if((EWOULDBLOCK == err) || (EAGAIN == err) || (EINTR == err))
#endif
{
/* this is just a case of EWOULDBLOCK */
#ifdef WIN32
if(WSAEWOULDBLOCK == err)
#else
- if(EWOULDBLOCK == err)
+ if((EWOULDBLOCK == err) || (EAGAIN == err) || (EINTR == err))
#endif
return -1;
}