dm_signal Module

Auxiliary interfaces and routines for signal handling on Unix.


Uses

    • unix
  • module~~dm_signal~~UsesGraph module~dm_signal dm_signal unix unix module~dm_signal->unix

Used by

  • module~~dm_signal~~UsedByGraph module~dm_signal dm_signal module~dmpack dmpack module~dmpack->module~dm_signal

Abstract Interfaces

abstract interface

  • public subroutine dm_signal_callback(signum) bind(c)

    C-interoperable signal callback routine interface, to be passed as argument to dm_signal_register().

    Arguments

    Type IntentOptional Attributes Name
    integer(kind=c_int), intent(in), value :: signum

    Signal number.


Functions

public function dm_signal_name(signum) result(name)

Returns name of signal as allocatable string. If the signal number is unknown, the numeric value is returned instead.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: signum

Signal number.

Return Value character(len=:), allocatable

Signal name.


Subroutines

public subroutine dm_signal_register(handler)

Registers passed C-interoperable POSIX signal callback routine for SIGINT, SIGQUIT, SIGABRT, SIGKILL, and SIGTERM.

Arguments

Type IntentOptional Attributes Name
procedure(dm_signal_callback) :: handler

Signal callback routine.