Discover Packages
github.com/ElianaTroper/pidfile
package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jan 15, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
pidfile
pidfiles for golang
Expand ▾
Collapse ▴
Documentation
¶
View Source
var (
ErrProcessRunning = errors .New ("process is already running")
ErrFileStale = errors .New ("pidfile exists but process is not running")
ErrFileInvalid = errors .New ("pidfile has invalid contents")
)
Write writes a pidfile, returning an error
if the process is already running or pidfile is orphaned
Source Files
¶
Click to show internal directories.
Click to hide internal directories.