pforks

package
v0.0.0-...-ecf5411 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsChildren

func IsChildren() bool

Types

type Fork

type Fork struct {
	DoMaster   func() error
	DoChildren func() error
	// extra files will be sent to child processes
	Files    []*os.File
	ChildNum int

	// extra flags will set as cmd args to child processes
	ExtraFlags []string
	// contains filtered or unexported fields
}

func (*Fork) Cmds

func (f *Fork) Cmds() []*exec.Cmd

func (*Fork) Run

func (f *Fork) Run() error

Jump to

Keyboard shortcuts

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