Go to the documentation of this file.
9 #ifndef SQUID_SRC_IPC_KID_H
10 #define SQUID_SRC_IPC_KID_H
30 Kid(
const char *role,
const int id);
33 void start(pid_t cpid);
@ pkHelper
general-purpose helper child
time_t deathDuration() const
bool exitedHappy() const
whether the process exited with code 0
time_t startTime
last start time
int exitStatus() const
returns the exit status of the process
bool calledExit() const
returns true if the process terminated normally
void start(pid_t cpid)
called when this kid got started, records PID
int termSignal() const
returns the number of the signal that caused the kid to terminate
bool hopeless() const
whether the failures are "repeated and frequent"
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
pid_t pid
current (for a running kid) or last (for stopped kid) PID
void forgetFailures()
forgets all past failures, ensuring that we are not hopeless()
PidStatus status
exit status of a stopped kid
int TheProcessKind
ProcessKind for the current process.
bool shouldRestart() const
returns true if master should restart this kid
@ pkOther
we do not know or do not care
int badFailures
number of "repeated frequent" failures
bool running() const
returns true if tracking of kid is stopped
@ pkWorker
general-purpose worker bee
bool signaled() const
returns true if the kid was terminated by a signal
time_t stopTime
last termination time
bool isRunning
whether the kid is assumed to be alive
void stop(PidStatus const exitStatus)
called when kid terminates, sets exiting status
SBuf processName() const
returns kid name
@ pkCoordinator
manages all other kids
@ pkDisker
cache_dir manager