executor

package
v1.0.0-beta.3 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2019 License: Apache-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecutorLock = &sync.Mutex{}

Functions

func MakeCommand

func MakeCommand(dir string, entrypoint string, args []string, envs []string) *exec.Cmd

func Output

func Output(cmd *exec.Cmd) (output []byte, err error)

func Reap

func Reap()

Normal entry point for the reaper code. Start reaping children in the background inside a goroutine.

func Run

func Run(cmd *exec.Cmd, debug bool) error

func Start

func Start(config Config)

Entry point for invoking the reaper code with a specific configuration. The config allows you to bypass the pid 1 checks, so handle with care. The child processes are reaped in the background inside a goroutine.

Types

type Config

type Config struct {
	Pid              int
	Options          int
	DisablePid1Check bool
}

Jump to

Keyboard shortcuts

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