mod_signal_handler¶
Handling signals like SIGINT (ctr-c) and SIGTERM (slurm time limit).
Only init_signal_handler() needs to be called from the main program. The signal handler records SIGINT and SIGTERM. check_signal_collective() performs cleanup from normal program execution. author: Moritz R. Schaefer
Dependencies¶
Module Variables¶
-
SIGHUP: integer(c_int) -
SIGINT: integer(c_int) -
SIGTERM: integer(c_int) -
handler_ptr: type(c_funptr) -
initialized: logical -
pending_signal: integer(c_int)
Procedures Summary¶
| Name | Type | Description |
|---|---|---|
signal_pending |
Function | |
get_pending_signal |
Function | |
init_signal_handler |
Subroutine | |
signal_handler |
Subroutine | |
check_signal_collective |
Subroutine |
Interface Details¶
interface signal¶
Procedure Details¶
function signal_pending¶
function signal_pending()
function get_pending_signal¶
function get_pending_signal()
subroutine init_signal_handler¶
subroutine init_signal_handler()
Called By
subroutine signal_handler¶
subroutine signal_handler( &
sig &
)
Arguments
-
sig: integer(c_int)
subroutine check_signal_collective¶
subroutine check_signal_collective()
Called By