Ignore:
Timestamp:
Dec 22, 2008, 10:05:34 PM (16 years ago)
Author:
katerina
Message:

New option LooseDirCheck (ticket #132). Also, replace _exit() with raise(SIGKILL).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_processcheck.c

    r204 r205  
    10921092 * with PID = i + 1024
    10931093 */
     1094static size_t p_store = 0;
     1095
    10941096static int openvz_ok(short * res, size_t i)
    10951097{
     1098
    10961099  if (sh_prochk_openvz == S_FALSE) {
    10971100    return 0;
     
    11121115    }
    11131116
    1114   if (openvz_hidden)
    1115     {
     1117  if (openvz_hidden > 0)
     1118    {
     1119      p_store = i;
    11161120      --openvz_hidden;
     1121      return 1;
     1122    }
     1123  else if (i == p_store)
     1124    {
    11171125      return 1;
    11181126    }
     
    14091417  sh_prochk_interval = SH_PROCHK_INTERVAL;
    14101418  sh_prochk_openvz   = S_FALSE;
     1419  p_store            = 0;
     1420  openvz_hidden      = 0;
    14111421
    14121422  sh_prochk_free_list(process_check);
Note: See TracChangeset for help on using the changeset viewer.