Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChildProcReaper ¶ added in v0.16.0
ChildProcReaper spawns a goroutine to listen for SIGCHLD signals to cleanup zombie child processes. The returned context will be canceled once all child processes have been cleaned up, and should be waited on before exiting.
This only applies to Unix platforms, and returns an already canceled context on Windows.
func GetSignals ¶
GetSignals returns the appropriate signals to catch for a clean shutdown, dependent on the OS.
On Unix-like operating systems, it is important to catch SIGTERM in addition to SIGINT.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.