g77.info: Alarm Intrinsic

Go forward to All Intrinsic
Go backward to AInt Intrinsic
Go up to Table of Intrinsic Functions
Go to the top op g77

Alarm Intrinsic

     CALL Alarm(SECONDS, HANDLER, STATUS)
SECONDS: `INTEGER'; scalar; INTENT(IN).
HANDLER: Signal handler (`INTEGER FUNCTION' or `SUBROUTINE') or
dummy/global `INTEGER(KIND=1)' scalar.
STATUS: `INTEGER(KIND=1)'; OPTIONAL; scalar; INTENT(OUT).
Intrinsic groups: `unix'.
Description:
   Causes external subroutine HANDLER to be executed after a delay of
SECONDS seconds by using `alarm(1)' to set up a signal and `signal(2)'
to catch it.  If STATUS is supplied, it will be returned with the
number of seconds remaining until any previously scheduled alarm was
due to be delivered, or zero if there was no previously scheduled alarm.
*Note Signal Intrinsic (subroutine)::.