Expand description
Graceful shutdown signal handling. Signal handling for graceful shutdown on SIGINT and SIGTERM.
Structs§
- Shutdown
Signal - Thread-safe shutdown coordination for signal-driven graceful exit.
Functions§
- get_
or_ install_ handlers - Return the existing shutdown signal or install handlers if none exists.
- install_
handlers - Register SIGINT and SIGTERM handlers and return the shared shutdown signal.
- install_
handlers_ early - Install minimal signal handlers as early as possible.
- reset_
sigpipe - Reset SIGPIPE to default disposition for standard Unix CLI behavior.
- write_
shutdown_ message - Emit the user-facing shutdown banner to stderr from the main thread.