Void signal(Signal sig, Void(Int) handler)
Arguments
sig: The Signal to handlehandler: The function to call when the signal appears. It takes one parameter - an integer giving the numeric value of the signal, to allow a single function to be used for multiple signals.
Usage
Set a signal handler. The function specified will then be called whenever the signal is received.