# Functions
AddSigHandler adds custom signal handler for custom one or more signals.
AddSigHandlerShutdown adds custom signal handler for shutdown signals: syscall.SIGINT, syscall.SIGQUIT, syscall.SIGKILL, syscall.SIGTERM, syscall.SIGABRT.
IsChild checks and returns whether current process is a child process.
Listen blocks and does signal listening and handling.
MustShell performs as Shell, but it panics if any error occurs.
MustShellExec performs as ShellExec, but it panics if any error occurs.
MustShellRun performs as ShellRun, but it panics if any error occurs.
NewManager creates and returns a new process manager.
NewProcess creates and returns a new Process.
NewProcessCmd creates and returns a process with given command and optional environment variable array.
Pid returns the pid of current process.
PPid returns the custom parent pid if exists, or else it returns the system parent pid.
PPidOS returns the system parent pid of current process.
Receive blocks and receives message from other process using local TCP listening.
SearchBinary searches the binary `file` in current working folder and PATH environment.
SearchBinaryPath searches the binary `file` in PATH environment.
Send sends data to specified process of given pid.
SetPPid sets custom parent pid for current process.
Shell executes command `cmd` synchronously with given input pipe `in` and output pipe `out`.
ShellExec executes given command `cmd` synchronously and returns the command result.
ShellRun executes given command `cmd` synchronously and outputs the command result to the stdout.
StartTime returns the start time of current process.
Uptime returns the duration which current process has been running.
# Structs
Manager is a process manager maintaining multiple processes.
MsgRequest is the request structure for process communication.
MsgResponse is the response structure for process communication.
Process is the struct for a single process.
# Type aliases
SigHandler defines a function type for signal handling.