Keil Logo

__default_signal_handler()

4.5 __default_signal_handler()

Defined in rt_misc.h, the __default_signal_handler() 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 the ARM® C library supports it as an extension.

Syntax

int __default_signal_handler(int signal, int type);

Usage

The default signal handler returns a nonzero value to indicate that the caller has to arrange for the program to exit. You can replace the default signal handler by defining:
int __default_signal_handler(int signal, int type);
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.

Note

The signals used by the libraries might change in future releases of ARM Compiler.
Non-ConfidentialPDF file icon PDF versionARM DUI0378H
Copyright © 2007, 2008, 2011, 2012, 2014-2016 ARM. All rights reserved. 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.