subprocess

package
v0.0.0-...-88aa921 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

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

Instance manages a subprocess instance.

func New

func New(sigtermTimeout time.Duration, env []string, command string, args ...string) (*Instance, chan error, error)

New creates a subprocess.Instance

func (*Instance) Close

func (s *Instance) Close() error

Close signals the subprocess to shutdown via sigterm. If sigterm fails to shutdown withing the s.timeout, a sigkill is issued.

func (*Instance) Notify

func (s *Instance) Notify(sig os.Signal)

Notify sends the sig to the subprocess instance.

Jump to

Keyboard shortcuts

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