Changeset 399
- Timestamp:
- Mar 27, 2012, 10:12:22 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/Changelog
r398 r399 1 1 3.0.3: 2 * make sure sh_processes_readps cannot hang forever 2 3 * fix for deadlock if sh_processes_readps hangs 3 4 * fix for deadlock if suid check and inotify are used together 5 (reported by A. Jack) 4 6 * fixed problem with samhain_stealth.c (handle input config 5 7 files that don't end with a newline) -
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.