- Timestamp:
- Apr 6, 2011, 1:04:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_sub.c
r324 r325 348 348 } 349 349 350 #ifndef ETIMEDOUT 351 #define ETIMEDOUT EIO 352 #endif 353 350 354 static ssize_t sh_sub_read(int fd, void *buf, size_t count) 351 355 { … … 371 375 else 372 376 { 377 if (rcount >= 0) 378 errno = ETIMEDOUT; 373 379 return -1; 374 380 } 375 381 } 376 } while (count > 0 && (errno == EAGAIN || errno == EWOULDBLOCK)); 382 } while (count > 0 && 383 (errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR)); 377 384 378 385 if (count > 0) … … 471 478 } while (retval < 0 && errno == EINTR); 472 479 473 #ifndef ETIMEDOUT474 #define ETIMEDOUT EIO475 #endif476 477 480 if (retval <= 0) 478 481 {
Note:
See TracChangeset
for help on using the changeset viewer.