Changeset 325 for trunk/src


Ignore:
Timestamp:
Apr 6, 2011, 1:04:06 PM (14 years ago)
Author:
katerina
Message:

More fixes for ticket #244: timeout error in retry_lstat() not propagated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_sub.c

    r324 r325  
    348348}
    349349
     350#ifndef ETIMEDOUT
     351#define ETIMEDOUT EIO
     352#endif
     353
    350354static ssize_t sh_sub_read(int fd, void *buf, size_t count)
    351355{
     
    371375        else
    372376          {
     377            if (rcount >= 0)
     378              errno = ETIMEDOUT;
    373379            return -1;
    374380          }
    375381      }
    376   } while (count > 0 && (errno == EAGAIN || errno == EWOULDBLOCK));
     382  } while (count > 0 &&
     383           (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR));
    377384
    378385  if (count > 0)
     
    471478  } while (retval < 0 && errno == EINTR);
    472479
    473 #ifndef ETIMEDOUT
    474 #define ETIMEDOUT EIO
    475 #endif
    476 
    477480  if (retval <= 0)
    478481    {
Note: See TracChangeset for help on using the changeset viewer.