Auxiliary interfaces and routines for signal handling on Unix.
C-interoperable signal callback routine interface, to be passed as
argument to dm_signal_register()
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer(kind=c_int), | intent(in), | value | :: | signum |
Signal number. |
Returns name of signal as allocatable string. If the signal number is unknown, the numeric value is returned instead.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | signum |
Signal number. |
Signal name.
Registers passed C-interoperable POSIX signal callback routine for
SIGINT
, SIGQUIT
, SIGABRT
, SIGKILL
, and SIGTERM
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
procedure(dm_signal_callback) | :: | handler |
Signal callback routine. |