Skip to main content

Module signal_handler

Module signal_handler 

Source
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