pidfile

package
v1.15.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorPidForking    = errors.New("pid file is forking")
	ErrorPidNotForking = errors.New("pid file not forking")
)

Functions

func Exist

func Exist() bool

func ProcessExists

func ProcessExists(pid int) bool

Types

type PidFile

type PidFile struct {
	// contains filtered or unexported fields
}

func New

func New() (*PidFile, error)

func (*PidFile) Remove

func (p *PidFile) Remove() error

func (*PidFile) TryFork

func (p *PidFile) TryFork() error

func (*PidFile) UnFork

func (p *PidFile) UnFork() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL