Linux Signal Reference
31 matches
Visible
31
all
Total
31
signals
Actions
5
defaults
Status
ready
local
signal table
| # | Name | Default | Description |
|---|---|---|---|
| 1 | Term | Hangup detected on controlling terminal. | |
| 2 | Term | Interrupt from keyboard (Ctrl-C). | |
| 3 | Core | Quit from keyboard (Ctrl-\). | |
| 4 | Core | Illegal instruction. | |
| 5 | Core | Trace/breakpoint trap. | |
| 6 | Core | Abort signal from abort(3). | |
| 7 | Core | Bus error (bad memory access alignment). | |
| 8 | Core | Floating-point exception. | |
| 9 | Term | Kill signal (cannot be caught or ignored). | |
| 10 | Term | User-defined signal 1. | |
| 11 | Core | Invalid memory reference (segmentation fault). | |
| 12 | Term | User-defined signal 2. | |
| 13 | Term | Broken pipe: write to pipe with no readers. | |
| 14 | Term | Timer signal from alarm(2). | |
| 15 | Term | Termination request — default for kill(1). | |
| 16 | Term | Stack fault on coprocessor (rarely used). | |
| 17 | Ign | Child process stopped or terminated. | |
| 18 | Cont | Continue if stopped. | |
| 19 | Stop | Stop process (cannot be caught or ignored). | |
| 20 | Stop | Stop typed at terminal (Ctrl-Z). | |
| 21 | Stop | Background process attempting read from tty. | |
| 22 | Stop | Background process attempting write to tty. | |
| 23 | Ign | Urgent condition on socket. | |
| 24 | Core | CPU time limit exceeded. | |
| 25 | Core | File size limit exceeded. | |
| 26 | Term | Virtual alarm clock. | |
| 27 | Term | Profiling timer expired. | |
| 28 | Ign | Window resize signal. | |
| 29 | Term | I/O now possible (POLL). | |
| 30 | Term | Power failure imminent. | |
| 31 | Core | Bad system call. |
typical uses & defaults
Default actions
Term · Default: terminate the process.
Core · Default: terminate the process and dump core.
Ign · Default: ignore the signal.
Stop · Default: stop the process.
Cont · Default: continue if stopped.
Typical uses
SIGHUP · Daemons often reload config on SIGHUP.
SIGINT · Stop foreground process gracefully.
SIGQUIT · Stop process and dump core for debugging.
SIGILL · Generated by CPU on bad opcode — usually a bug.
SIGTRAP · Used by debuggers (gdb breakpoints).
SIGABRT · assert() failure or explicit abort().
SIGBUS · Unaligned access or mmap'd file truncated.
SIGFPE · Divide-by-zero or invalid math op.
SIGKILL · Last resort to terminate a stuck process.
SIGUSR1 · App-specific — often used to trigger log rotation, etc.
SIGSEGV · Null pointer / out-of-bounds access.
SIGUSR2 · App-specific — second custom hook.
SIGPIPE · Common in shell pipelines when reader exits early.
SIGALRM · Implements timeouts in POSIX code.
SIGTERM · Polite shutdown signal; let process clean up.
SIGSTKFLT · Legacy — typically unused on modern Linux.
SIGCHLD · Parent reaps zombies with wait(2).
SIGCONT · Resume a process previously stopped.
SIGSTOP · Force-pause a process from outside.
SIGTSTP · Suspend job to background; resume with fg/bg.
SIGTTIN · Job control: bg process needs terminal input.
SIGTTOU · Job control: bg process tried to write to terminal.
SIGURG · TCP out-of-band data received.
SIGXCPU · Process exceeded RLIMIT_CPU.
SIGXFSZ · Wrote past RLIMIT_FSIZE.
SIGVTALRM · Timer that counts process CPU time only.
SIGPROF · Used by profilers (gprof).
SIGWINCH · Terminal apps redraw on window resize.
SIGIO · Asynchronous I/O notification.
SIGPWR · UPS daemons notify processes.
SIGSYS · Seccomp filter rejection or unknown syscall.