Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OwnerPid ¶
OwnerPid returns the ID of the process owning the PID file. 0 is returned if it is known that no process owns the file. -1 and an error is returned if the owner or its existence could not be determined.
func Read ¶
Read reads the content of the PID file. It returns the process ID found in the file. If opening the file or reading an integer process ID fails Read() returns -1 and an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.