Expand description
Signal handler registration and cleanup coordination
Structs§
- Cleanup
Guard - Cleanup guard that ensures cleanup runs on drop
Functions§
- is_
cleanup_ requested - Check if cleanup has been requested (e.g., via signal)
- register_
signal_ handlers - Register signal handlers for graceful shutdown Handles SIGINT (Ctrl+C), SIGTERM, and SIGHUP on Unix
- request_
cleanup - Request cleanup (sets the global flag)