Changeset 335 for trunk/src


Ignore:
Timestamp:
Apr 24, 2011, 11:02:05 PM (14 years ago)
Author:
katerina
Message:

Module cleanup/thread restart at configuration reload.

Location:
trunk/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_log_check.c

    r277 r335  
    11671167      else
    11681168        return SH_MOD_FAILED;
     1169    }
     1170  else if (arg != NULL && arg->initval == SH_MOD_THREAD &&
     1171           (sh.flag.isdaemon == S_TRUE || sh.flag.loop == S_TRUE))
     1172    {
     1173      return SH_MOD_THREAD;
    11691174    }
    11701175#endif
  • trunk/src/sh_portcheck.c

    r334 r335  
    11921192        return SH_MOD_FAILED;
    11931193    }
     1194  else if (arg != NULL && arg->initval == SH_MOD_THREAD &&
     1195           (sh.flag.isdaemon == S_TRUE || sh.flag.loop == S_TRUE))
     1196    {
     1197      return SH_MOD_THREAD;
     1198    }
    11941199#endif
    11951200  return sh_portchk_init_internal();
  • trunk/src/sh_processcheck.c

    r290 r335  
    13311331        return SH_MOD_FAILED;
    13321332    }
     1333  else if (arg != NULL && arg->initval == SH_MOD_THREAD &&
     1334           (sh.flag.isdaemon == S_TRUE || sh.flag.loop == S_TRUE))
     1335    {
     1336      return SH_MOD_THREAD;
     1337    }
    13331338#endif
    13341339  return sh_prochk_init_internal();
  • trunk/src/sh_pthread.c

    r315 r335  
    153153  sh_mtype * this_module = (sh_mtype *) arg;
    154154  this_module->mod_cleanup();
     155  this_module->initval = -1;
    155156  return;
    156157}
  • trunk/src/sh_registry.c

    r312 r335  
    237237      else
    238238        return SH_MOD_FAILED;
     239    }
     240  else if (arg != NULL && arg->initval == SH_MOD_THREAD &&
     241           (sh.flag.isdaemon == S_TRUE || sh.flag.loop == S_TRUE))
     242    {
     243      return SH_MOD_THREAD;
    239244    }
    240245#endif
  • trunk/src/sh_suidchk.c

    r317 r335  
    13991399        return SH_MOD_FAILED;
    14001400    }
     1401  else if (arg != NULL && arg->initval == SH_MOD_THREAD &&
     1402           (sh.flag.isdaemon == S_TRUE || sh.flag.loop == S_TRUE))
     1403    {
     1404      return SH_MOD_THREAD;
     1405    }
    14011406#endif
    14021407
Note: See TracChangeset for help on using the changeset viewer.