Changeset 399 for trunk/src/sh_processcheck.c
- Timestamp:
- Mar 27, 2012, 10:12:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_processcheck.c
r398 r399 553 553 SL_RETURN((0), _("sh_prochk_set_psarg")); 554 554 #else 555 (void) str; 555 556 sh_prochk_psarg = NULL; 556 557 SL_RETURN((-1), _("sh_prochk_set_psarg")); … … 868 869 char c; 869 870 unsigned int pos = 0; 871 #define SH_TWAIT_MAX 60 872 volatile unsigned int twait = 0; 870 873 char tstr[256]; 871 874 enum { SKIP_TO_WS, SKIP_WS, SKIP_TO_WS2, SKIP_WS2, GET_NUM, SKIP_END, GET_NUM2 } line; … … 891 894 break; 892 895 } 893 else if ( errno == EAGAIN)896 else if ((errno == EAGAIN) && (twait < SH_TWAIT_MAX)) 894 897 { 895 898 clearerr(in); 899 retry_msleep(1, 0); 900 ++twait; 896 901 continue; 897 902 }
Note:
See TracChangeset
for help on using the changeset viewer.