Go to the first, previous, next, last section, table of contents.


Signal Intrinsic (function)

Signal(Number, Handler)

Signal: INTEGER(KIND=1) function.

Number: INTEGER; scalar; INTENT(IN).

Handler: Signal handler (INTEGER FUNCTION or SUBROUTINE) or dummy/global INTEGER(KIND=1) scalar.

Intrinsic groups: badu77.

Description:

If Handler is a an EXTERNAL routine, arranges for it to be invoked with a single integer argument (of system-dependent length) when signal Number occurs. If Number is an integer, it can be used to turn off handling of signal Handler or revert to its default action. See signal(2).

Note that Handler will be called using C conventions, so its value in Fortran terms is obtained by applying %LOC() (or LOC()) to it.

The value returned by signal(2) is returned.

Due to the side effects performed by this intrinsic, the function form is not recommended.

For information on other intrinsics with the same name: See section Signal Intrinsic (subroutine).


Go to the first, previous, next, last section, table of contents.