process

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Platform = "unix"

	// Umask sets and returns the current umask.
	Umask = unix.Umask
)

Functions

func BecomeForegroundGroup

func BecomeForegroundGroup() (err error)

BecomeForegroundGroup performs the Unix incantations necessary to put the current process in the foreground.

func Continue

func Continue(pid int)

Continue send a SIGCONT to the process ID pid.

func ForegroundGroup

func ForegroundGroup() int

ForegroundGroup returns the current foreground group ID.

func Group

func Group() int

Group returns the group ID for the current process.

func ID

func ID() int

ID returns the process ID for the current process.

func Interrupt

func Interrupt(pid int)

Interrupt sends a SIGINT to the process ID pid.

func RestoreForegroundGroup

func RestoreForegroundGroup()

RestoreForegroundGroup places the group for this process back in the foreground.

func SetForegroundGroup

func SetForegroundGroup(g int)

SetForegroundGroup sets the terminal's foregeound group to g.

func Stop

func Stop(pid int)

Stop sends a SIGSTOP to the process ID pid.

func SysProcAttr

func SysProcAttr(foreground bool, group int) *unix.SysProcAttr

SysProcAttr returns the appropriate *unix.SysProcAttr given the group ID and if this is for the foreground group.

func Terminate

func Terminate(pid int)

Terminate sends a SIGTERM to the process ID pid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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