- Timestamp:
- Apr 4, 2011, 9:48:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_sub.c
r323 r324 453 453 if (retval < 0) 454 454 { 455 int error = errno; 455 456 sh_kill_sub(); 457 errno = error; 456 458 sflag = 1; 457 459 goto end; … … 466 468 467 469 do { 468 retval = poll(&pfds, 1, 1000);470 retval = poll(&pfds, 1, 300 * 1000); 469 471 } while (retval < 0 && errno == EINTR); 470 472 473 #ifndef ETIMEDOUT 474 #define ETIMEDOUT EIO 475 #endif 476 471 477 if (retval <= 0) 472 478 { 479 int error = errno; 473 480 sh_kill_sub(); 481 errno = (retval == 0) ? ETIMEDOUT : error; 474 482 sflag = -1; 475 483 goto end; … … 483 491 if (retval < 0) 484 492 { 493 int error = errno; 485 494 sh_kill_sub(); 495 errno = error; 486 496 sflag = 1; 487 497 goto end;
Note:
See TracChangeset
for help on using the changeset viewer.