os/signal package
Canonical docs for signal delivery, `Notify`, `Stop`, `Reset`, and `NotifyContext` in Go processes.
Canonical docs for signal delivery, Notify, Stop, Reset, and NotifyContext in Go processes.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/os/signal
What it covers
- signal subscription
- signal.NotifyContext lifecycle
- process shutdown trigger handling
Why authoritative
Official package documentation for Go signal handling APIs.
Use when
- how should Go handle SIGTERM
- how do I use signal.NotifyContext in Go
- how should process shutdown be triggered in Go
Keywords
- os/signal, NotifyContext, signals, SIGTERM, SIGINT