process

package
v0.0.0-...-730ab85 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindPid

func FindPid(name string) (int, error)

func NewCmd

func NewCmd(proc *ProcInfo) *exec.Cmd

func SpawnProc

func SpawnProc(proc *ProcInfo) error

func StartProc

func StartProc(proc *ProcInfo) ([]byte, error)

func StopProc

func StopProc(proc *ProcInfo) error

func TerminateProc

func TerminateProc(proc *ProcInfo, signal os.Signal) error

Types

type ProcInfo

type ProcInfo struct {
	Pid     int
	Cmdline string
	Env     string
}

Jump to

Keyboard shortcuts

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