Operating-System Signal Delivery¶
An operating-system notification mechanism that applies a signal disposition to a process or thread.
Core Idea¶
A Unix-like operating system uses signals to notify a process or thread of events. A signal can come from another process, the kernel, or an error in the receiving thread's own execution. In Linux, each signal has a process-wide disposition: perform its default action, ignore it, or invoke an installed handler where permitted. Each thread has its own signal mask; pending signals may be process-directed or thread-directed. The resulting action may terminate or stop the process, or run a handler that can return; SIGKILL and SIGSTOP cannot be caught, blocked or ignored.[1]
This is a kernel-to-user notification mechanism, related to but distinct from processor interrupt entry. A signal generated by an instruction fault is not evidence that all signals are asynchronous with respect to the receiving execution.[1]
How would you explain it like I'm…
The Computer's Shoulder Tap
Signals to Programs
Kernel Signals to Processes
Masking and Pending Signals¶
In Linux, a blocked signal may remain pending. For a standard signal, multiple instances generated while it is blocked can coalesce into one pending instance. sigprocmask() reads or changes the calling thread's mask: SIG_BLOCK adds a set, SIG_UNBLOCK removes it, and SIG_SETMASK replaces the mask. Its use in a multithreaded process is unspecified; the manual directs such programs to pthread_sigmask().[1][2]
Linux real-time signals occupy a range bounded by SIGRTMIN and SIGRTMAX. Their application-visible limits may vary, so programs should use the macros and check the range rather than hard-code a number. Multiple real-time instances can be queued, unlike repeated blocked instances of a standard signal.[1]
Named and Numbered Examples¶
The following are Linux examples: a process can change many dispositions, so the action shown is the default, not an inevitable outcome.[1]
| Signal | Example association | Default action |
|---|---|---|
| SIGINT | Keyboard interrupt | Terminate |
| SIGQUIT | Keyboard quit | Terminate with core dump |
| SIGABRT / SIGIOT | Abort; SIGIOT is a synonym | Terminate with core dump |
| SIGFPE | Erroneous arithmetic operation | Terminate with core dump |
| SIGSEGV | Invalid memory reference | Terminate with core dump |
| SIGTRAP | Trace or breakpoint trap | Terminate with core dump |
| SIGKILL | Kill request; cannot be caught, blocked or ignored | Terminate |
| SIGALRM | Alarm timer | Terminate |
| SIGTERM | Termination request | Terminate |
| SIGIO | I/O possible | Terminate |
| SIGPWR | Power-failure indication | Terminate |
| SIGWINCH | Window-size change | Ignore |
| SIGUSR1 / SIGUSR2 | Application-defined uses | Terminate |
For Linux on x86 and Arm, signals 2, 3, 5, 6, 9, 11, 14 and 15 correspond respectively to SIGINT, SIGQUIT, SIGTRAP, SIGABRT, SIGKILL, SIGSEGV, SIGALRM and SIGTERM. Signal numbers in general vary by architecture and system; names are safer than treating every number as portable.[1]
SIGINFO demonstrates the need to name the system. FreeBSD documents it as a keyboard status request, normally discarded by the process. Linux on Alpha instead lists SIGINFO as a synonym for SIGPWR; that is not a general rule for all Linux architectures.[3][1]
POSIX Names and the Number Two¶
POSIX.1-2017 specifies symbolic signal names and default actions through <signal.h>; it also defines mask-operation constants such as SIG_BLOCK, SIG_UNBLOCK and SIG_SETMASK. The standard includes SIGINT as a terminal interrupt signal. These rules are a shared interface, while implementations can supply additional signals and differ in other details.[4]
The POSIX kill utility's -2 option selects SIGINT. That option is a numeric name for the utility, not a guarantee that the implementation's internal integer for SIGINT is 2: POSIX.1-2017 does not require specific signal numbers for these symbolic names. A program should use the symbolic constant rather than assume the integer value.[5]
Sending and Boundaries¶
The Linux psmisc killall utility sends a signal to processes matching the named commands; it accepts a signal by name or number. On the Linux architectures in the example above, killall -9 name requests SIGKILL for matches. A successful request is subject to permissions and process selection; the command's meaning and scope must not be assumed for every Unix implementation.[6][1]
A signal name or a redirect to a general signal page does not by itself specify a portable numeric value, origin, disposition or application behavior. Signal handlers also have restrictions on safely calling functions while interrupted state may be inconsistent; the separate interrupt entry describes that boundary. This account does not enumerate every signal or claim to reproduce the complete POSIX standard.
Neighborhood in Abstraction Space¶
Operating-System Signal Delivery sits in a sparse region of the domain-specific corpus (94th percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.
Family — Unclustered & Miscellaneous (3155 abstractions)
Nearest neighbors
- Interrupt and Signal Delivery — 0.90
- SIGTRAP — 0.78
- Segmentation Fault — 0.77
- Background process — 0.74
- Yield (multithreading) — 0.74
Computed from structural-signature embeddings · 2026-11-14
References¶
[1] Linux man-pages project, signal(7): Overview of signals. registry ↩a ↩b ↩c ↩d ↩e ↩f ↩g ↩h
[2] Linux man-pages project, sigprocmask(2): Examine and change blocked signals. registry ↩
[3] FreeBSD Project, signal(3): Signal management. registry ↩
[4] IEEE and The Open Group, 2017, signal.h: Signals. POSIX.1-2017 reprint. registry ↩
[5] IEEE and The Open Group, 2017, kill: Send a signal. POSIX.1-2017 reprint. registry ↩
[6] psmisc project, killall(1): Kill processes by name. registry ↩