You are viewing a single thread.
View all comments View context
50 points

Nah, we gotta kill, preferably with -9. 🤣

permalink
report
parent
reply
13 points

You know I’ve known for decades that -9 is basically “nuke it from orbit”, but does anyone know what the “9” actually means or where it came from?

permalink
report
parent
reply
22 points

It’s the number of the signal sent, 9 is for SIGKILL. You can send various signals with kill, and depending on how application was made it may react on all signals with dying, or meaningfully process most of them. Afaik, SIGKILL can’t be processed by the app, and it always means just that: “die already”.

Checked in Wikipedia, that’s about right but there are more details I left out, mostly because didn’t know about them, too: POSIX signals

permalink
report
parent
reply
4 points

Thank you! That’s what I was looking for.

permalink
report
parent
reply
5 points
*

You can use kill -l (lowercase L) to see a list of signals. But IIRC it’s the same as -KILL.

EDIT: fixed the signal name.

permalink
report
parent
reply
4 points

TERM is the default (15). 9 is KILL

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 7.2K

    Monthly active users

  • 954

    Posts

  • 37K

    Comments