SIGQUIT Signal Explained (Signal 3)
What the Linux SIGQUIT signal does and when it's used.
Published October 23, 2026
SIGQUIT (signal 3) is sent by Ctrl+\ in a terminal. It terminates the process and, by default, produces a core dump for debugging.
What it does
Default action: Terminate and dump core. It can be caught with a signal handler.
Typically sent by: Ctrl+\ or kill -QUIT PID; JVMs print thread dumps on it. List all signals with kill -l.
Signal number and delivery
kill -l | grep SIGQUIT
3) SIGQUIT
kill -3 1234 # or kill -QUIT 1234
(signal delivered to process 1234)
Practical examples
Send it from the shell
kill -3 <PID>
kill -SIGQUIT <PID>
pkill -3 nginxHandle it in a script
trap 'echo got SIGQUIT; cleanup; exit' SIGQUIT
while true; do sleep 1; doneHandle it in code
import signal, sys
def handler(sig, frame):
print('received', sig)
sys.exit(0)
signal.signal(signal.SIGQUIT, handler)Common mistakes
- Using kill -9 before trying SIGTERM.
- Forgetting to find the right PID (ps aux | grep, pgrep).
- Not handling signals in long-running services.
Key takeaways
- SIGQUIT is signal 3.
- Default: Terminate and dump core.
- Use kill -l to list all signals.
FAQ
Why does a Java app print a thread dump?
The JVM handles SIGQUIT by dumping all threads to stdout.
How do I list all signals?
Run kill -l.