Documentation
¶
Index ¶
Constants ¶
View Source
const UnknownPID = -1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PidPath ¶
type PidPath struct {
// contains filtered or unexported fields
}
func NewPidPath ¶
NewPidPath manages a process ID file to coordinate whether a process is already running.
func (*PidPath) Check ¶
Check will determine the state of the process. A `nil` returned indicates no other process was found active.
func (*PidPath) CheckAndSet ¶
CheckAndSet evaluates if the process is currently running and, if not, sets the current process ID into the file.
func (*PidPath) IsRunning ¶
IsRunning determines if the pidpath indicates that its process is in the process listing (see Getpid's note).
Click to show internal directories.
Click to hide internal directories.