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())
SBuf TheKidName
current Squid process name (e.g., "squid-coord")
Kids TheKids
All kids being maintained.
void forgetAllFailures()
forgets all failures in all kids
bool someSignaled(const int sgnl) const
whether some kids died from a given signal
size_t count() const
returns the number of kids
bool allExitedHappy() const
whether all kids called exited happy
Kid * find(pid_t pid)
returns kid by pid
bool shouldRestartSome() const
whether some kids should be restarted by master
std::vector< Kid > storage
void init()
initialize all kid records based on Config
bool someRunning() const
whether some kids are running
Kid & get(size_t i)
returns the kid by index, useful for kids iteration
time_t forgetOldFailures()
bool allHopeless() const
whether all kids are hopeless
Store::DiskConfig cacheSwap
time_t hopelessKidRevivalDelay
hopeless_kid_revival_delay
int n_strands
number of disk processes required to support all cache_dirs