Qore Programming Language Reference Manual 2.0.0
|
Functions | |
nothing | Qore::remove_signal_handler (softint signal) |
Removes a signal handler and returns the signal handling state to the default. | |
nothing | Qore::set_signal_handler (softint signal, code f) |
Sets or replaces a signal handler according to the signal number and closure or call reference (function or object method reference) passed. | |
Signal handing functions
Removes a signal handler and returns the signal handling state to the default.
By the time this function returns, changes to the signal handling thread have already been effected.
signal | The signal number to process, see Signal Constants for possible values |
Sets or replaces a signal handler according to the signal number and closure or call reference (function or object method reference) passed.
By the time this function returns, changes to the signal handling thread have already been effected.
When a signal is raised and the signal handler code is called, the signal number is passed as an integer argument to the signal handling code.
signal | The signal number to process, see Signal Constants for possible values |
f | The code to execute when the signal is caught; this should accept an integer argument giving the signal number |