code related to Squid Instance and PID file management
|creates a PID file; throws on error More...|
Usually throws if another Squid instance is running. False positives are highly unlikely, but the caller must tolerate false negatives well: We may not detect another running instance and, hence, may not throw. Does nothing if PID file maintenance is disabled.
Referenced by SquidMain().
Creates or updates the PID file for the current process. Does nothing if PID file maintenance is disabled.
References DBG_IMPORTANT, debugs, Must, PidFilename(), SBuf::Printf(), FileOpeningConfig::ReadWrite(), RemoveInstance(), File::synchronize(), ThrowIfAlreadyRunningWith(), File::truncate(), and File::writeAll().