this post was submitted on 08 Sep 2024
1210 points (100.0% liked)

Programmer Humor

22506 readers
1590 users here now

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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 7 months ago (8 children)

Could we please let this 30+ year old joke just die?

[–] [email protected] 50 points 7 months ago (1 children)

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

[–] [email protected] 13 points 7 months ago (2 children)

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?

[–] [email protected] 22 points 7 months ago (1 children)

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

[–] [email protected] 4 points 7 months ago (1 children)

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

[–] [email protected] 6 points 7 months ago

In languages like C, your application code can register what is called a signal handler. These functions get called when the process receives a signal. You could do something like reload a config file for example, without the user needing to stop and restart the process.

[–] [email protected] 6 points 7 months ago* (last edited 7 months ago) (1 children)

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.

[–] [email protected] 4 points 7 months ago (1 children)

TERM is the default (15). 9 is KILL

[–] [email protected] 2 points 7 months ago
[–] [email protected] 42 points 7 months ago

What have you got against me? 😭

[–] [email protected] 37 points 7 months ago

Just for this comment I'm reposting this next week.

[–] [email protected] 34 points 7 months ago

Many here will be seeing this for the first time. For others it will be a fun reminder of something they haven't seen for a long time. Still others will find it to be the same old tired shit they're sick of.

When you see the same old tired shit on Lemmy (or any social media), just move on. There will be plenty that is new to you.

[–] [email protected] 10 points 7 months ago

We’re gonna put it on a scheduled repost loop, with it being stickied for at least an hour every post. A different hour each time too.

[–] [email protected] 7 points 7 months ago

i agree, it's time to let the next generation take over, grandpa

[–] [email protected] 5 points 7 months ago

I wonder what the children of this joke would be...

[–] [email protected] 2 points 7 months ago

No die, is funni