Documentation
¶
Index ¶
- Variables
- func Cancel(ids ...uint32)
- func Context() context.Context
- func Exec(ctx context.Context, opts ExecOptions) error
- func Name() string
- func Notify(sig os.Signal) bool
- func On(sig os.Signal, fn func()) uint32
- func Once(sig os.Signal, fn func()) uint32
- func Path(components ...string) string
- func Pathf(format string, args ...any) string
- func Pid() int
- func SetSysProcAttribute(cmd *exec.Cmd)
- func SetTimeToForceQuit(duration time.Duration)
- func Shutdown(sig syscall.Signal) error
- func WorkDir() string
- type ExecOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger io.Writer
Functions ¶
func Exec ¶
func Exec(ctx context.Context, opts ExecOptions) error
Exec https://github.com/gouravkrosx/golang-cmd-exit-demo?ref=hackernoon.com https://keploy.io/blog/technology/managing-go-processes
func SetSysProcAttribute ¶
SetSysProcAttribute sets the common SysProcAttrs for commands
func SetTimeToForceQuit ¶
SetTimeToForceQuit sets the waiting time before force quitting.
Types ¶
Click to show internal directories.
Click to hide internal directories.