| |||
| Home > The C and C++ libraries > __default_signal_handler() | |||
Defined in rt_misc.h, this function handles
a raised signal. The default action is to print an error message
and exit.
This function is not part of the C library standard, but is supported by the ARM C library as an extension.
The default signal handler uses _ttywrch() to
print a message and calls _sys_exit() to exit.
You can replace the default signal handler by defining:
void __default_signal_handler(intsignal, inttype);
The interface is the same as __raise(),
but this function is only called after the C signal handling mechanism
has declined to process the signal.
A complete list of the defined signals is in signal.h.
The signals used by the libraries might change in future releases of the product.
Using ARM® C and C++ Libraries and Floating-Point Support:
Using ARM® C and C++ Libraries and Floating-Point Support:
Using ARM® C and C++ Libraries and Floating-Point Support: