{
for (int rc, retries = 10; retries > 0; retries--)
{
- if ((rc = read(fd, buf, count) >= 0) break;
+ if ((rc = read(fd, buf, count)) >= 0) break;
if (rc != -1 || errno != EINTR) break;
}
return rc;
{
for (int rc, retries = 10; retries > 0; retries--)
{
- if ((rc = write(fd, buf, count) >= 0) break;
+ if ((rc = write(fd, buf, count)) >= 0) break;
if (rc != -1 || errno != EINTR) break;
}
return rc;
{
for (int rc, retries = 10; retries > 0; retries--)
{
- if ((rc = writev(fd, iov, iovcnt) >= 0) break;
+ if ((rc = writev(fd, iov, iovcnt)) >= 0) break;
if (rc != -1 || errno != EINTR) break;
}
return rc;