Overview

This is an overview of specific POSIX signals.

CodeName
1SIGHUP
2SIGINT
4SIGILL
6SIGABRT
7SIGBUS
8SIGFPE
9SIGKILL
11SIGSEGV
13SIGPIPE
15SIGTERM

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).