process

package
v0.1.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signaler

type Signaler interface {
	// Send uses the kill syscall to issue a given signal.
	Send(signal string) error
}

A Signaler is used to issue a signal to a process group.

func Signals

func Signals(pid int) Signaler

Signals returns a Signaler that issues real os signals.

type WaitCh

type WaitCh chan *drivers.ExitResult

type Waiter

type Waiter interface {
	Wait() WaitCh
}

func WaitPID

func WaitPID(pid int, taskdir string) Waiter

WaitPID is able to wait on a given specific PID. We must lookup the process and also send a signal(0) to make sure it is actually still alive before waiting on it.

func WaitProc

func WaitProc(p *os.Process) Waiter

WaitProc makes use of the os.Process handle to wait on the child process. This is the handle returned from directly launching the process through the exec package.

Jump to

Keyboard shortcuts

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