Documentation
¶
Overview ¶
Package childproc runs a program in the foreground on behalf of a bork command, the way a shell would.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExitCode ¶
ExitCode is the status to exit with for a program that ended with err: its own exit code, or 128 plus the signal number if a signal killed it, as shells report it.
func Run ¶
Run starts cmd and waits for it. While it runs, SIGINT and SIGTERM no longer stop the caller, so it cannot exit and orphan the program; they are forwarded to the program instead. A signal sent to the whole process group, such as a terminal's Ctrl+C, then reaches the program twice in quick succession; generated programs count both as one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.