process

package
v0.9.60 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NOTE: could be custom in config file for default.
	DEFAULT = 60 * time.Second
)

Common timeout.

View Source
var (
	ErrExecTimeout = errors.New("Process execution timeout")
)
View Source
var (
	Processes []*Process
)

List of existing processes.

Functions

func Add

func Add(desc string, cmd *exec.Cmd) int64

Add adds a existing process and returns its PID.

func Exec