Go to the documentation of this file.
52 for (
size_t i = 0; i <
storage.size(); ++i) {
69 for (
size_t i = 0; i <
storage.size(); ++i) {
86 time_t nextCheckDelay = 0;
91 const auto deathDuration = kid.deathDuration();
98 assert(remainingDeathTime > 0);
99 if (remainingDeathTime < nextCheckDelay || !nextCheckDelay)
100 nextCheckDelay = remainingDeathTime;
102 return nextCheckDelay;
108 for (
size_t i = 0; i <
storage.size(); ++i) {
118 for (
size_t i = 0; i <
storage.size(); ++i) {
128 for (
size_t i = 0; i <
storage.size(); ++i) {
138 for (
size_t i = 0; i <
storage.size(); ++i) {
139 if (
storage[i].shouldRestart())
std::vector< Kid > storage
SBuf TheKidName
current Squid process name (e.g., "squid-coord")
bool someSignaled(const int sgnl) const
whether some kids died from a given signal
bool shouldRestartSome() const
whether some kids should be restarted by master
Store::DiskConfig cacheSwap
size_t count() const
returns the number of kids
time_t hopelessKidRevivalDelay
hopeless_kid_revival_delay
Kid & get(size_t i)
returns the kid by index, useful for kids iteration
bool allHopeless() const
whether all kids are hopeless
void forgetAllFailures()
forgets all failures in all kids
Kids TheKids
All kids being maintained.
int n_strands
number of disk processes required to support all cache_dirs
bool allExitedHappy() const
whether all kids called exited happy
time_t forgetOldFailures()
void init()
initialize all kid records based on Config
Kid * find(pid_t pid)
returns kid by pid
bool someRunning() const
whether some kids are running