Linux Signals & Exit Codes.
Linux signal numbers with default actions, plus shell and sysexits exit codes such as 126, 127, 137 and 143.
Runs in your browserAbout Linux Signals & Exit Codes
Linux Signals & Exit Codes answers two questions that come up whenever a process dies unexpectedly: which signal was it, and what does this exit status mean? The signals table lists the standard Linux signals with their numbers on x86 and ARM, the default action (terminate, core dump, stop, continue or ignore), whether a program can catch or ignore the signal, and the kill command to send it. The exit codes table explains the statuses you see in shells, CI logs, Docker and Kubernetes: 126 means the file was found but is not executable, 127 means command not found, and anything above 128 is 128 plus the number of the signal that killed the process. So 130 is Ctrl+C (SIGINT), 137 is SIGKILL, typically the out-of-memory killer behind a Kubernetes OOMKilled status, 139 is a segmentation fault and 143 is SIGTERM from docker stop or a pod shutdown. The sysexits.h codes 64–78 used by mail servers and many command-line tools are included too. Common mistakes: trying to trap SIGKILL or SIGSTOP (impossible by design), running a Node or Python process as PID 1 in a container without forwarding SIGTERM so shutdowns always hit the 10-second SIGKILL, and assuming signal numbers are portable. They are not: macOS and BSD use different numbers for SIGUSR1, SIGCHLD and others, so send signals by name.
How to Use
- Pick signals or exit codes.
- Type a number or name, for example 143 or SIGTERM.
- Read the meaning and default action, then fix or handle it in your code.
Frequently Asked Questions
Why does my container exit with 137?
137 is 128 + 9, so the process received SIGKILL. In Docker and Kubernetes that usually means it exceeded its memory limit and the OOM killer stopped it, or it ignored SIGTERM during shutdown and was killed after the grace period.
Which signals cannot be caught?
SIGKILL (9) and SIGSTOP (19). The kernel handles them directly, so a process cannot install a handler, block or ignore them.
Are these numbers the same on macOS?
Signals 1–6, 8, 9, 11 and 13–15 match, but the others differ; for example SIGUSR1 is 10 on Linux and 30 on macOS. Use names like kill -USR1 for portable scripts.
Does this page run anything on my machine?
No. It is a reference table that runs in your browser.
Related Tools
Searchable cheatsheet of everyday git, docker, docker compose and kubectl commands with short explanations.
Default TCP and UDP ports of common protocols, databases and developer tools, searchable by number or name.
Parse cron expressions and preview next run times.
Reference for all HTTP status codes.
Information about your current IP address.
Complete ASCII character reference (0–127).