9.239. SIGNAL
9.239 SIGNAL — Signal handling subroutine (or function)
- Description:
-
SIGNAL(NUMBER, HANDLER [, STATUS])
causes external subroutine HANDLER to be executed with a single integer argument when signal NUMBER occurs. If HANDLER is an integer, it can be used to turn off handling of signal NUMBER or revert to its default action. Seesignal(2)
.If
SIGNAL
is called as a subroutine and the STATUS argument is supplied, it is set to the value returned bysignal(2)
. - Standard:
- GNU extension
- Class:
- Subroutine, function
- Syntax:
-
CALL SIGNAL(NUMBER, HANDLER [, STATUS])
STATUS = SIGNAL(NUMBER, HANDLER)
- Arguments:
-
登录查看完整内容