Overview
This is an overview of specific POSIX signals.
Code | Name |
---|---|
1 | SIGHUP |
2 | SIGINT |
4 | SIGILL |
6 | SIGABRT |
7 | SIGBUS |
8 | SIGFPE |
9 | SIGKILL |
11 | SIGSEGV |
13 | SIGPIPE |
15 | SIGTERM |
Details
SIGHUP (1)
A process receives a SIGHUP
signal when the terminal it is attached to goes away before it finishes executing.
SIGINT (2)
Indicates the process was interrupted by the user. Happens when pressing Ctrl-C
from the controlling terminal.
SIGILL (4)
Indicates the CPU encountered an instruction it does not understand or does not have permission to execute. Can often indicate corruption in some way or perhaps an attempt to execute data instead of code.
SIGABRT (6)
A signal, usually sent when the process itself invokes abort()
. Indicates an “emergency stop”.
Bibliography
- Cooper, Mendel. “Advanced Bash-Scripting Guide,” n.d., 916.
- Dowling, “A List of Signals and What They Mean.”
- Jens Gustedt, Modern C (Shelter Island, NY: Manning Publications Co, 2020).