70 "Squid Parent: %s process %d exited with status %d"
74 "Squid Parent: %s process %d exited due to signal %d with status %d"
syslog(LOG_NOTICE, "Squid Parent: %s process %d exited"
syslog(LOG_NOTICE, "Squid Parent: %s process %d will not be restarted for %ld "
83 "seconds due to repeated, frequent failures"
time_t deathDuration() const
SBuf & appendf(const char *fmt,...)
bool exitedHappy() const
whether the process exited with code 0
void stop(PidStatus const exitStatus)
called when kid terminates, sets exiting status
bool hopeless() const
whether the failures are "repeated and frequent"
current (for a running kid) or last (for stopped kid) PID
bool calledExit() const
returns true if the process terminated normally
SBuf & append(const SBuf &S)
exit status of a stopped kid
int termSignal() const
returns the number of the signal that caused the kid to terminate
pid_t getPid() const
returns current pid for a running kid and last pid for a stopped kid
void reportStopped() const
describes a recently stopped kid
SBuf processName() const
returns kid name
void start(pid_t cpid)
called when this kid got started, records PID
we do not know or do not care
bool shouldRestart() const
returns true if master should restart this kid
bool running() const
returns true if tracking of kid is stopped
bool signaled() const
returns true if the kid was terminated by a signal
int exitStatus() const
returns the exit status of the process
ProcessKind for the current process.
whether the kid is assumed to be alive
last start time
last termination time
number of "repeated frequent" failures