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
- SIGTERM vs SIGKILL · Which one should stop a process?
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
Numbers are Linux on x86 and arm64; alpha, mips, sparc and parisc number some signals differently. Spot one that's wrong? Tell Rod.