moreos

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LineSeparator is the runtime.GOOS-specific new line or line feed. Ex. "\n"
	LineSeparator = ln
	// Exe is the runtime.GOOS-specific suffix for executables. Ex. "" unless windows which is ".exe"
	Exe = exe
)

Variables

This section is empty.

Functions

func Interrupt

func Interrupt(p *os.Process) error

Interrupt attempts to interrupt the process. It doesn't necessarily kill it.

func IsExecutable

func IsExecutable(f os.FileInfo) bool

IsExecutable returns true if the input can be run as an exec.Cmd

func ProcessGroupAttr

func ProcessGroupAttr() *syscall.SysProcAttr

ProcessGroupAttr sets attributes that ensure exec.Cmd doesn't propagate signals from func-e by default. This is used to ensure shutdown hooks can apply

Types

This section is empty.

Jump to

Keyboard shortcuts

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