hcsprocess

package
v0.0.0-...-410f0c4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_GRACEFUL_SHUTDOWN_ALLOWED = 10*time.Second + 1*time.Second

* Windows's standard graceful shutdown timeout is 10s. * In the worst case, we wait for one more second before cutting off * the process

Variables

This section is empty.

Functions

This section is empty.

Types

type Process

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

func New

func New(p hcsshim.Process) *Process

func (*Process) AttachIO

func (p *Process) AttachIO(attachStdin io.Reader, attachStdout, attachStderr io.Writer) (int, error)

func (*Process) SetInterrupt

func (p *Process) SetInterrupt(s chan os.Signal)

func (*Process) WritePIDFile

func (p *Process) WritePIDFile(pidFile string) error

Jump to

Keyboard shortcuts

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