$RodHat_/search
signal reference

SIGKILL

Kill, unconditionally.

Linux number
9
FreeBSD number
9
Default action
Terminate the process
Catch, block or ignore
Not possible
Standard
POSIX.1-1990

Cannot be caught, blocked or ignored, so the process gets no chance to clean up: no handlers, no atexit, no flushed buffers, stale lock files and temp files stay put. The kernel OOM killer uses it. Send SIGTERM first and give it a deadline. A process in uninterruptible sleep (state D) will not die until the I/O returns, SIGKILL or not.

Compare it

Related syscalls

  • pidfd_send_signal(2)Linux · Processes

    Send a signal to the process a pidfd refers to, without PID-reuse races.

Rod on this

Sources

  1. signal(7), Linux man-pages
  2. signal(3), FreeBSD manual

Numbers are Linux on x86 and arm64; alpha, mips, sparc and parisc number some signals differently. Spot one that's wrong? Tell Rod.