##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# SIGTERM, SIGSEGV, SIGINT, SIGILL, SIGABRT, SIGFPE

From cppreference.com
< cpp‎ | utility‎ | program

Defined in header `<csignal>` |  |
#define SIGTERM /*implementation defined*/ |  |
#define SIGSEGV /*implementation defined*/ |  |
#define SIGINT /*implementation defined*/ |  |
#define SIGILL /*implementation defined*/ |  |
#define SIGABRT /*implementation defined*/ |  |
#define SIGFPE /*implementation defined*/ |  |

Each of the above macro constants to an integer constant expression with distinct values, which represent different signals sent to the program.

Constant | Explanation
`SIGTERM` | termination request, sent to the program
`SIGSEGV` | invalid memory access (segmentation fault)
`SIGINT` | external interrupt, usually initiated by the user
`SIGILL` | invalid program image, such as invalid instruction
`SIGABRT` | abnormal termination condition, as is e.g. initiated by std::abort()
`SIGFPE` | erroneous arithmetic operation such as divide by zero

### [edit] Notes

Additional signal names are specified by POSIX

### [edit] See also

signal | sets a signal handler for particular signal (function) [edit]
raise | runs the signal handler for particular signal (function) [edit]
C documentation for signal types

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/utility/program/SIG_types&oldid=64229"