process

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrInvalidfd is returned when the given file descriptor is invalid
	ErrInvalidfd = errors.New("invalid file descriptor")
)

Functions

func GetPidLocation

func GetPidLocation() string

GetPidLocation finds the location to store our pid file and fallback to /var/run if none found

func GetRemoteProcPid

func GetRemoteProcPid() int

GetRemoteProcPid gets the pid as it appears in the pid file (maybe not ours)

func KillParent

func KillParent(ppid int) error

KillParent sends a signal to make the parent exit gracefully with SIGQUIT

func Recover

func Recover() (l net.Listener, ppid int, err error)

Recover from a seamless binary upgrade and use an already existing listener to take over the connections

func Relaunch

func Relaunch(l net.Listener) error

Relaunch launches {self} as a child process passing listener details to provide a seamless binary upgrade.

func RemovePidFile

func RemovePidFile()

RemovePidFile removes the current pid file

func WritePidFile

func WritePidFile()

WritePidFile writes the current pid file to disk

Types

This section is empty.

Jump to

Keyboard shortcuts

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