SIGKILL Signal Explained (Signal 9)

What the Linux SIGKILL signal does and when it's used.

Published October 23, 2026

SIGKILL (signal 9) immediately terminates a process. It cannot be caught, blocked or ignored, so the process gets no chance to clean up.

What it does

Default action: Terminate immediately (always). It cannot be caught, blocked or ignored.

Typically sent by: kill -9 PID or kill -KILL PID; the kernel's OOM killer also uses it. List all signals with kill -l.

Signal number and delivery

kill -l | grep SIGKILL
9) SIGKILL
kill -9 1234 # or kill -KILL 1234
(signal delivered to process 1234)

Practical examples

Send it from the shell

kill -9 <PID>
kill -SIGKILL <PID>
pkill -9 nginx

It cannot be handled

# SIGKILL/SIGSTOP cannot be trapped
trap '' SIGKILL   # has no effect

Handle it in code

# Python cannot register a handler for this signal
# signal.signal(...) raises OSError

Common mistakes

  • Using kill -9 before trying SIGTERM.
  • Forgetting to find the right PID (ps aux | grep, pgrep).
  • Expecting the process to clean up after this signal.

Key takeaways

  • SIGKILL is signal 9.
  • Default: Terminate immediately (always).
  • Use kill -l to list all signals.

FAQ

When should I use kill -9?

Only after SIGTERM (kill PID) failed, because cleanup is skipped and temp files, locks or data may be left behind.

How do I list all signals?

Run kill -l.

More Linux articles