Changeset 144 for trunk/src/sh_processcheck.c
- Timestamp:
- Oct 31, 2007, 11:33:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_processcheck.c
r143 r144 689 689 struct stat buf; 690 690 DIR * dir; 691 int retval; 691 692 #ifdef HAVE_STATVFS 692 int retval;693 693 struct statvfs vfsbuf; 694 694 #endif … … 753 753 sl_snprintf (path, sizeof(path), "/proc/%ld", (unsigned long) pid); 754 754 755 if (0 == retry_lstat (FIL__, __LINE__, path, &buf)) 755 do { 756 retval = lstat (path, &buf); 757 } while (retval < 0 && errno == EINTR); 758 759 if (0 == retval) 756 760 { 757 761 res |= SH_PR_LSTAT; res |= SH_PR_ANY; ++have_checks; … … 782 786 { 783 787 res |= SH_PR_CHDIR; res |= SH_PR_ANY; ++have_checks; 784 retry_aud_chdir(FIL__, __LINE__, "/"); 788 do { 789 retval = chdir ("/"); 790 } while (retval < 0 && errno == EINTR); 785 791 } 786 792 ++need_checks; … … 1215 1221 return SH_MOD_FAILED; 1216 1222 #ifdef HAVE_PTHREAD 1217 if (arg != NULL && arg->initval < 0 && sh.flag.isdaemon == S_TRUE) 1223 if (arg != NULL && arg->initval < 0 && 1224 (sh.flag.isdaemon == S_TRUE || sh.flag.loop == S_TRUE)) 1218 1225 { 1219 1226 if (0 == sh_pthread_create(sh_threaded_module_run, (void *)arg)) … … 1307 1314 userdef_maxpid = 0; 1308 1315 sh_prochk_maxpid = 0x8000; 1309 sh_prochk_minpid = 0x000 0;1316 sh_prochk_minpid = 0x0001; 1310 1317 sh_prochk_interval = SH_PROCHK_INTERVAL; 1311 1318
Note:
See TracChangeset
for help on using the changeset viewer.