9.12. ALARM

9.12 ALARM — Execute a routine after a given delay

Description:
ALARM(SECONDS, HANDLER [, STATUS]) causes external subroutine HANDLER to be executed after a delay of SECONDS by using alarm(2) 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.
Standard:
GNU extension
Class:
Subroutine
Syntax:
CALL ALARM(SECONDS, HANDLER [, STATUS])
Arguments:
SECONDS The type of the argument shall be a scalar INTEGER. It is INTENT(IN).
HAND