Signals

<#467#><#467#> allows the use to associate handlers to signals. Signal handlers for a given signal can even be chained in a list. When a signal occurs, the first signal of the list is executed. Unless this signal yields the symbol <#468#>break<#468#> the next signal of the list is evaluated. When a signal handler is called, the integer value of this signal is passed to it as (the only) parameter.

The following POXIX.1<#469#>POSIX.1<#469#> constants for signal numbers are defined: <#470#>SIGABRT<#470#>, <#471#>SIGALRM<#471#>, <#472#>SIGFPE<#472#>, <#473#>SIGHUP<#473#>, <#474#>SIGILL<#474#>, <#475#>SIGINT<#475#>, <#476#>SIGKILL<#476#>, <#477#>SIGPIPE<#477#>, <#478#> SIGQUIT<#478#>, <#479#>SIGSEGV<#479#>, <#480#>SIGTERM<#480#>, <#481#>SIGUSR1<#481#>, <#482#> SIGUSR2<#482#>, <#483#>SIGCHLD<#483#>, <#484#>SIGCONT<#484#>, <#485#>SIGSTOP<#485#>, <#486#> SIGTSTP<#486#>, <#487#>SIGTTIN<#487#>, <#488#>SIGTTOU<#488#>. Moreover, the following constants, which are often available on most systems are also defined: <#490#>SIGTRAP<#490#>, <#491#>SIGIOT<#491#>, <#492#> SIGEMT<#492#>, <#493#>SIGBUS<#493#>, <#494#>SIGSYS<#494#>, <#495#>SIGURG<#495#>, <#496#>SIGCLD<#496#>, <#497#>SIGIO<#497#>, <#498#>SIGPOLL<#498#>, <#499#>SIGXCPU<#499#>, <#500#>SIGXFSZ<#500#>, <#501#> SIGVTALRM<#501#>, <#502#>SIGPROF<#502#>, <#503#>SIGWINCH<#503#>, <#504#>SIGLOST<#504#>.

See your Unix documentation for the exact meaning of each constant or [#Posix.1-90##1###]. Use symbolic constants rather than their numeric value if you plan to port your program on another system.

A special signal, managed by the interpreter, is also defined: <#507#> SIGHADGC<#507#>. This signal is raised when the garbage collector phase terminates.

When the interpreter starts running, all signals are sets to their default value, excepted <#508#>SIGINT<#508#> (generally bound to <#509#> Control-C<#509#>) which is handled specially.


#entry510#


#entry528#


#entry541#