Qore Programming Language Reference Manual
1.12.1
|
Modules | |
Miscellaneous Functions | |
Functions | |
nothing | Qore::remove_signal_handler (softint signal) |
Removes a signal handler and returns the signal handling state to the default. More... | |
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. More... | |
Signal handing functions
nothing Qore::remove_signal_handler | ( | softint | signal | ) |
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 |
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.
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 |