Skip to main content

Module cleanup

Module cleanup 

Source
Expand description

Signal handler registration and cleanup coordination

Structs§

CleanupGuard
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)