Expand description
Signal handling for graceful cleanup on process interruption
This module provides signal handlers that update execution status when the process is interrupted by signals like SIGINT (Ctrl+C), SIGTERM (kill), or SIGHUP (terminal close).
Functionsยง
- clear_
current_ execution - Clear the current execution record (call after normal completion)
- get_
signal_ exit_ code - Get the exit code from the received signal
- set_
current_ execution - Set the current execution record for signal cleanup
- setup_
signal_ handlers - Set up signal handlers for graceful cleanup on interruption
- was_
signal_ received - Check if a signal has been received