local set = system.signal.set.new(system.signal.SIGTERM, system.signal.SIGINT)
This class provides the ability to wait for one or more signals to occur.
Multiple registration of signals
Arguments are treated as signals to be added to the set.
Only the main VM on the process may create new
set objects. If the VM
elects another VM to be the new main VM, its old
set objects will remain valid
and working, but the VM won’t be able to create new
Add a signal to the set.
|Only the master VM is allowed to use this function.
Wait for a signal to be delivered. The function will return when:
One of the registered signals in the set occurs; or
The set was cancelled, in which case the function will raise the exception
A number is returned to indicate which signal occurred.
Queueing of signal notifications