process

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetachedStart

func DetachedStart(cmd *exec.Cmd) error

DetachedStart will start a subprocess in detached mode.

func Exists

func Exists(pid int) (bool, error)

Exists will check if a process exists with the given pid.

func SendSignal

func SendSignal(pid int, sig os.Signal) error

SendSignal sends a 'sig' signal to 'pid' process.

func WaitWithContext

func WaitWithContext(ctx context.Context, pid int) error

WaitWithContext will wait for a process to exit. It will return the exit code of the process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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