Ignore:
Timestamp:
Oct 31, 2007, 11:33:13 PM (17 years ago)
Author:
rainer
Message:

Fix some more queer compile problems.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_processcheck.c

    r143 r144  
    689689  struct stat buf;
    690690  DIR * dir;
     691  int  retval;
    691692#ifdef HAVE_STATVFS
    692   int  retval;
    693693  struct statvfs vfsbuf;
    694694#endif
     
    753753  sl_snprintf (path, sizeof(path), "/proc/%ld", (unsigned long) pid);
    754754
    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)
    756760    {
    757761      res |= SH_PR_LSTAT;   res |= SH_PR_ANY; ++have_checks;
     
    782786    {
    783787      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);
    785791    }
    786792  ++need_checks;
     
    12151221    return SH_MOD_FAILED;
    12161222#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))
    12181225    {
    12191226      if (0 == sh_pthread_create(sh_threaded_module_run, (void *)arg))
     
    13071314  userdef_maxpid     = 0;
    13081315  sh_prochk_maxpid   = 0x8000;
    1309   sh_prochk_minpid   = 0x0000;
     1316  sh_prochk_minpid   = 0x0001;
    13101317  sh_prochk_interval = SH_PROCHK_INTERVAL;
    13111318
Note: See TracChangeset for help on using the changeset viewer.